You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2021/01/17 10:36:16 UTC
svn commit: r1885595 -
/poi/trunk/src/integrationtest/org/apache/poi/stress/StressMap.java
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: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org