Ver código fonte

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
tags/REL_5_1_0
Andreas Beeker 3 anos atrás
pai
commit
7ad01e4daa

+ 4
- 1
src/integrationtest/org/apache/poi/stress/StressMap.java Ver arquivo

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

Carregando…
Cancelar
Salvar