We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02fcfdd commit 4750376Copy full SHA for 4750376
commons/util/src/test/java/net/automatalib/common/util/process/ProcessUtilTest.java
@@ -36,8 +36,12 @@ public class ProcessUtilTest {
36
37
public ProcessUtilTest() throws URISyntaxException {
38
this.program = "python";
39
- URL resource = Objects.requireNonNull(ProcessUtilTest.class.getResource("/process.py"));
40
- this.path = Paths.get(resource.toURI()).toFile().getAbsolutePath();
+ this.path = getPathToScript();
+ }
41
+
42
+ private static String getPathToScript() throws URISyntaxException {
43
+ final URL resource = Objects.requireNonNull(ProcessUtilTest.class.getResource("/process.py"));
44
+ return Paths.get(resource.toURI()).toFile().getAbsolutePath();
45
}
46
47
@BeforeTest
0 commit comments