Hi Rich, Just use the Suite feature of JUnit. See the JUnit FAQ.
Basically you create a suite in a static suite() method and add the tests you wish to the suite, in the order you wish to execute them. All that said, it's not good to have any order (tests should be independent of each other) and I don't understand why you absolutely need one. You could use a fixture instead, ensuring that each tests has a correct setup before it runs. Thanks -Vincent > -----Original Message----- > From: Cumbers [mailto:[EMAIL PROTECTED] > Sent: vendredi 14 janvier 2005 19:00 > To: Cactus Users List > Subject: Define order of tests > > Hey guys > > I have a need to specify the order in which the tests for cactus are > executed as one class I have defines retrieving data from the database, > and another class defines storing data to the database. I would like the > class that retrieves data to be run first, allowing this class to be > 'verified' as returning the correctly requested data. Then I would like > to run the 'storing' class and then as a test of that use the > 'retrieving' class to verify that the stored data was indeed stored. I > am using ant integration if that is on any assistance. > > Cheers > > Rich > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
