mirror of https://github.com/apache/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
This commit is contained in:
parent
435b6a131e
commit
7ad01e4daa
|
@ -64,7 +64,10 @@ public class StressMap {
|
||||||
}
|
}
|
||||||
|
|
||||||
public ExcInfo getExcInfo(String file, String testName, FileHandlerKnown handler) {
|
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()))
|
.filter(e -> e.isMatch(testName, handler.name()))
|
||||||
.findFirst().orElse(null);
|
.findFirst().orElse(null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue