Skip to content

Commit 4750376

Browse files
committed
cleanups
[skip ci]
1 parent 02fcfdd commit 4750376

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

commons/util/src/test/java/net/automatalib/common/util/process/ProcessUtilTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ public class ProcessUtilTest {
3636

3737
public ProcessUtilTest() throws URISyntaxException {
3838
this.program = "python";
39-
URL resource = Objects.requireNonNull(ProcessUtilTest.class.getResource("/process.py"));
40-
this.path = Paths.get(resource.toURI()).toFile().getAbsolutePath();
39+
this.path = getPathToScript();
40+
}
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();
4145
}
4246

4347
@BeforeTest

0 commit comments

Comments
 (0)