aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2021-01-17 10:36:16 +0000
committerAndreas Beeker <kiwiwings@apache.org>2021-01-17 10:36:16 +0000
commit7ad01e4daa62d8f396096a139f78760ff545bbbc (patch)
tree3899ad36e72f2d575294889cb0fbff7484d25458
parent435b6a131e12396baf44537500ffb6bb7d21e482 (diff)
downloadpoi-7ad01e4daa62d8f396096a139f78760ff545bbbc.tar.gz
poi-7ad01e4daa62d8f396096a139f78760ff545bbbc.zip
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
-rw-r--r--src/integrationtest/org/apache/poi/stress/StressMap.java5
1 files changed, 4 insertions, 1 deletions
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);
}