X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=tests%2Forg.simantics.scl.compiler.tests%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Ftests%2FTestBase.java;h=a662791dd58dfa27c1ccf095fb628f59cd5ac05d;hp=fa90f524cb4364386de2d71ff13c64209877702a;hb=82a87b8535628d47d9c381e1a3a2296fb67c7fd0;hpb=bf5f7cda1b9b64484cc6e53499e38d6785744aec diff --git a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/TestBase.java b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/TestBase.java index fa90f524c..a662791dd 100644 --- a/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/TestBase.java +++ b/tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/TestBase.java @@ -1,5 +1,6 @@ package org.simantics.scl.compiler.tests; +import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.StringWriter; @@ -122,6 +123,8 @@ public class TestBase { private String[] readTestParts(String testPath) throws IOException { InputStream stream = getClass().getResourceAsStream(testPath); + if(stream == null) + throw new FileNotFoundException(testPath); try { byte[] buffer = new byte[1024]; int pos = 0;