Author: kiwiwings
Date: Sun Jan 17 10:36:16 2021
New Revision: 1885595
URL: http://svn.apache.org/viewvc?rev=1885595&view=rev
Log:
Integration test - fix filenames with windows path separator
Modified:
poi/trunk/src/integrationtest/org/apache/poi/stress/StressMap.java
Modified: poi/trunk/src/integrationtest/org/apache/poi/stress/StressMap.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/integrationtest/org/apache/poi/stress/StressMap.java?rev=1885595&r1=1885594&r2=1885595&view=diff
==============================================================================
--- poi/trunk/src/integrationtest/org/apache/poi/stress/StressMap.java
(original)
+++ poi/trunk/src/integrationtest/org/apache/poi/stress/StressMap.java Sun Jan
17 10:36:16 2021
@@ -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);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]