Skip to content

Commit a9dfd50

Browse files
committed
ScriptInfoTest: fail more informatively
1 parent a420d99 commit a9dfd50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/java/org/scijava/script/ScriptInfoTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ public void testNoisyParameters() throws Exception {
9393

9494
final Object output = scriptModule.getOutput("result");
9595

96-
if (output == null || !(output instanceof Integer)) fail();
96+
if (output == null) fail("null result");
97+
else if (!(output instanceof Integer)) {
98+
fail("result is a " + output.getClass().getName());
99+
}
97100
else assertEquals(3, ((Integer) output).intValue());
98101
}
99102

0 commit comments

Comments
 (0)