Change test-resources path to src/test/resources
This commit is contained in:
1 parent
f47967577d
commit
11f227e203
8 files changed
+1
-1
No files matched your search
@@ -159,7 +159,7 @@ public class CompilerTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String[] example(String name, String expectedResult) throws IllegalArgumentException {
|
private String[] example(String name, String expectedResult) throws IllegalArgumentException {
|
||||||
try (InputStream in = CompilerTest.class.getClassLoader().getResourceAsStream("examples/" + name)) {
|
try (InputStream in = getClass().getResourceAsStream("/examples/" + name)) {
|
||||||
if (in == null) {
|
if (in == null) {
|
||||||
throw new IllegalArgumentException("No such example " + name);
|
throw new IllegalArgumentException("No such example " + name);
|
||||||
}
|
}
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user