mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
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) {
|
||||
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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user