From: Andreas Beeker Date: Sun, 17 Jan 2021 10:36:16 +0000 (+0000) Subject: Integration test - fix filenames with windows path separator X-Git-Tag: REL_5_1_0~421 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7ad01e4daa62d8f396096a139f78760ff545bbbc;p=poi.git Integration test - fix filenames with windows path separator git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885595 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/integrationtest/org/apache/poi/stress/StressMap.java b/src/integrationtest/org/apache/poi/stress/StressMap.java index 73d39b8530..f69fbfbf4f 100644 --- a/src/integrationtest/org/apache/poi/stress/StressMap.java +++ b/src/integrationtest/org/apache/poi/stress/StressMap.java @@ -64,7 +64,10 @@ public class StressMap { } public ExcInfo getExcInfo(String file, String testName, FileHandlerKnown handler) { - return exMap.get(file).stream() + // ... failures/handlers lookup doesn't work on windows otherwise + final String uniFile = file.replace('\\', '/'); + + return exMap.get(uniFile).stream() .filter(e -> e.isMatch(testName, handler.name())) .findFirst().orElse(null); }