UTs on Windows when project path contains space & some exception review

This commit is contained in:
Alix Lourme
2016-11-22 23:33:40 +01:00
parent 2ad08d2367
commit 6ecf55be91
8 changed files with 27 additions and 27 deletions

View File

@@ -196,7 +196,7 @@ public class CliParserTest {
*/
@Test
public void testParse_scan_withFileExists() throws Exception {
File path = new File(this.getClass().getClassLoader().getResource("checkSumTest.file").getPath());
File path = new File(this.getClass().getClassLoader().getResource("checkSumTest.file").toURI().getPath());
String[] args = {"-scan", path.getCanonicalPath(), "-out", "./", "-app", "test"};
CliParser instance = new CliParser();