Skip to content

Commit

Permalink
Handling the space character in the fixtures folder path
Browse files Browse the repository at this point in the history
  • Loading branch information
Maykon Oliveira authored and Maykon Oliveira committed May 18, 2022
1 parent 618fa4a commit 6f56dc2
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 6f56dc2

Please sign in to comment.