*** empty log message *** expecco_1_6_0 expecco_1_6_0rc5
authorClaus Gittinger <cg@exept.de>
Fri, 31 Oct 2008 14:12:47 +0100
changeset 194 bbb55d499a1f
parent 193 f1d005f25e86
child 195 ff752e67b964
*** empty log message ***
TestCase.st
--- a/TestCase.st	Fri Oct 31 13:49:27 2008 +0100
+++ b/TestCase.st	Fri Oct 31 14:12:47 2008 +0100
@@ -609,18 +609,44 @@
             each reset
         ]
     ] fork.
-    (self class selector:testSelector) runCaseAsFailure:semaphore.
+
+    "/ used to be: 
+    "/  (self class selector:testSelector) runCaseAsFailure:semaphore
+    "/ which is bad for subclasses which need more arguments.
+    "/ why not use:
+    "/  self copy perform:aSymbol
+    "/ or even
+    "/  self perform:aSymbol
+    "/ (self class selector:testSelector) runCaseAsFailure:semaphore.
+    self runCaseAsFailure:semaphore
 !
 
 debugUsing:aSymbol 
     self signalUnavailableResources.
     [
-        (self class selector:testSelector) perform:aSymbol
+        "/ used to be: 
+        "/  (self class selector:testSelector) perform:aSymbol
+        "/ which is bad for subclasses which need more arguments.
+        "/ why not use:
+        "/  self copy perform:aSymbol
+        "/ or even
+        "/  self perform:aSymbol
+        "/ (self class selector:testSelector) perform:aSymbol
+        self perform:aSymbol
     ] ensure:[
         self resources do:[:each | 
             each reset
         ]
     ]
+
+
+
+
+
+
+
+
+
 !
 
 failureLog      
@@ -722,7 +748,7 @@
 !TestCase class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/goodies/sunit/TestCase.st,v 1.47 2008-05-27 21:02:12 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/goodies/sunit/TestCase.st,v 1.48 2008-10-31 13:12:47 cg Exp $'
 ! !
 
 TestCase initialize!