Skip to content

Commit

Permalink
Merge pull request #99 from maykon-oliveira/bugfix/no-such-file-excep…
Browse files Browse the repository at this point in the history
…tion

Handling the space character in the fixtures folder path
  • Loading branch information
mauricioaniche committed Jul 27, 2023
2 parents 618fa4a + 6f56dc2 commit 8583e1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/java/com/github/mauricioaniche/ck/BaseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

import java.io.File;
import java.io.IOException;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.*;
import java.util.concurrent.Callable;

Expand All @@ -19,7 +21,7 @@ public abstract class BaseTest {
protected static String fixturesDir() {
try {
String cfgFile = new File(BaseTest.class.getResource("/").getPath() + "../../fixtures/").getCanonicalPath();
return cfgFile;
return URLDecoder.decode(cfgFile, StandardCharsets.UTF_8);
} catch (IOException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit 8583e1c

Please sign in to comment.