Fix in JUnitTestCaseProxy>>performTest. development
authorJan Vrany <jan.vrany@fit.cvut.cz>
Wed, 22 Jan 2014 15:02:15 +0000
branchdevelopment
changeset 2982 673487527490
parent 2981 5c86c719a79b
child 2983 3947e2e8f8d9
Fix in JUnitTestCaseProxy>>performTest. Add JavaVM unimplementedNativeMethodSignal to set of exceptions. This one is old-style instance-based Signal and thus does not match to Exception in outer handler. Therefore it must be added here explicitly listed in #performTest.
JUnitTestCaseProxy.st
--- a/JUnitTestCaseProxy.st	Tue Jan 21 14:44:18 2014 +0000
+++ b/JUnitTestCaseProxy.st	Wed Jan 22 15:02:15 2014 +0000
@@ -172,7 +172,10 @@
 
     assertions := SignalSet 
                     with: (Java classForName:'java.lang.AssertionError')
-                    with: (Java classForName:'junit.framework.AssertionFailedError').
+                    with: (Java classForName:'junit.framework.AssertionFailedError')
+                    "/ JavaVM unimplementedNativeMethodSignal is Signal, not exception.
+                    "/ Therefore it MUST be listed here!!!!!!
+                    with: (JavaVM unimplementedNativeMethodSignal).
     [
         self javaClass new perform: testSelector sunitAsSymbol
     ] on: assertions do: [:ex|
@@ -182,7 +185,7 @@
     ]
 
     "Created: / 01-03-2011 / 14:50:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified (format): / 30-11-2012 / 09:59:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 22-01-2014 / 14:40:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
 !JUnitTestCaseProxy class methodsFor:'documentation'!