Cactus/Junit Question

Cory Lum <[email protected]> Fri, 28 Dec 2007 08:36:58 -0800 (PST)
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
For JUnit, instance variables are not shared among test methods. In other words, if I have an instance variable int x and set x=10 in testMethod1, testMethod2 doesn't know x=10. Does this apply for cactus? 

For JUnit, it's not guarantee that the test cases are executed in the order of the class. For example:
class someTest() extends TestCase{
setUp(){ ... }
testMethod1() {...}
testMethod2() {...}
testMethod3() {...}
tearDown(){...}
}

is not guarantee to execute in the following order:
setUp(){ ... }, testMethod1() {...}, tearDown(){...}
setUp(){ ... }, testMethod2() {...}, tearDown(){...}
setUp(){ ... }, testMethod3() {...}, tearDown(){...}

Does this apply to cactus?


      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping