You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Petar Tahchiev <pa...@gmail.com> on 2008/01/04 17:46:51 UTC

Re: Cactus/Junit Question

Hi Corry,

and sorry for the late response. As Cactus being an extension of JUnit I
think that the
answer to both the questions is 'yes'.

Kind regards Petar.

2007/12/28, Cory Lum <lu...@yahoo.com>:
>
> 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




-- 
Regards, Petar!
Karlovo, Bulgaria.

EOOXML Objections
http://www.grokdoc.net/index.php/EOOXML_objections

Public PGP Key at:
https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611
Key Fingerprint: A369 A7EE 61BC 93A3 CDFF  55A5 1965 8550 C311 0611