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:
Andreas Beeker 2021-01-17 10:36:16 +00:00
parent 435b6a131e
commit 7ad01e4daa
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}