Close
jGuru Forums
Posted By: Anonymous Posted On: Saturday, March 29, 2003 05:26 PM
When creating a test case, can we ensure the test methods to be called in specific order? E.g. if we write a test case as in the following code, can we tell which method will be called first and which is the next?
public class FileTest extends TestCase { ... public void test3() {...} public void test1() {...} public void test2() {...} ... }
Re: Test order of the test methods
Posted By: Karthik_G Posted On: Tuesday, April 1, 2003 06:07 AM
public static Test suite(){ TestSuite suite = new TestSuite(); suite.addTest(new FileTest("test1")); suite.addTest(new FileTest("test2")); suite.addTest(new FileTest("test3")); return suite;}
Posted By: Jeanne_Boyarsky Posted On: Sunday, March 30, 2003 05:36 PM
Posted By: Anonymous Posted On: Sunday, March 30, 2003 02:07 AM
An important property of unit tests is that they are independent, that is, every test stands for its own.
Why do you want to know?