Skip to content

Commit a89041f

Browse files
knutwalkers1cksoerenreichardt
committed
Can URI format exceptions
Co-Authored-By: Martin Junghanns <[email protected]> Co-Authored-By: Sören Reichardt <[email protected]>
1 parent 1243e57 commit a89041f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

config-generator/src/test/java/org/neo4j/gds/proc/ConfigurationProcessorTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import javax.tools.JavaFileObject;
3232
import java.io.IOException;
3333
import java.io.UncheckedIOException;
34+
import java.net.URISyntaxException;
3435
import java.nio.file.Files;
3536
import java.nio.file.Paths;
3637
import java.util.Locale;
@@ -262,6 +263,8 @@ private JavaFileObject loadExpectedFile(String resourceName) {
262263
return forSourceLines(binaryName, sourceLines);
263264
} catch (IOException e) {
264265
throw new UncheckedIOException(e);
266+
} catch (URISyntaxException e) {
267+
throw new RuntimeException(e);
265268
}
266269
}
267270

pregel-proc-generator/src/test/java/org/neo4j/gds/beta/pregel/PregelProcessorTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import javax.tools.JavaFileObject;
3131
import java.io.IOException;
3232
import java.io.UncheckedIOException;
33+
import java.net.URISyntaxException;
3334
import java.nio.file.Files;
3435
import java.nio.file.Paths;
3536
import java.util.Locale;
@@ -168,6 +169,8 @@ private JavaFileObject loadExpectedFile(String resourceName) {
168169
return forSourceLines(binaryName, sourceLines);
169170
} catch (IOException e) {
170171
throw new UncheckedIOException(e);
172+
} catch (URISyntaxException e) {
173+
throw new RuntimeException(e);
171174
}
172175
}
173176

0 commit comments

Comments
 (0)