jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cory Lum <lum.c...@yahoo.com>
Subject Cactus/Junit Question
Date Fri, 28 Dec 2007 16:36:58 GMT
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() {...}

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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message