1
0

Change test-resources path to src/test/resources

This commit is contained in:
Thibaud Gasser 2018-10-23 20:43:00 +02:00
parent f47967577d
commit 11f227e203
8 changed files with 1 additions and 1 deletions

View File

@ -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);
} }