From 7ad01e4daa62d8f396096a139f78760ff545bbbc Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Sun, 17 Jan 2021 10:36:16 +0000 Subject: [PATCH] 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 --- src/integrationtest/org/apache/poi/stress/StressMap.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.39.5