]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/TestBase.java
New type class MonadE and corresponding monad syntax with edo keyword
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / TestBase.java
index fa90f524cb4364386de2d71ff13c64209877702a..a662791dd58dfa27c1ccf095fb628f59cd5ac05d 100644 (file)
@@ -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;