Hi Fazle, > -----Original Message----- > From: Fazle Khan [mailto:[EMAIL PROTECTED] > Sent: jeudi 4 novembre 2004 22:07 > To: [EMAIL PROTECTED] > Subject: Existing TestCases to cactus > > > To use existing junit testcases in cactus I need to > add the following method call to each testcase
This is not quite true. The only thing that you have to do is wrap the JUnit default suite in the ServletTestSuite suite. So in practice you can have a single suite class that will wrap all the test cases. In this manner, you'll have to write only a single suite() method. Now, the problem appears if you wish to run each test individually by reusing a JUnit runner (from your IDE for example, by righ-clicking on the test case and select "test"). In that case you need to have an individual suite() method. JUnit explicitely checks for a static suite() method so there's no other than defining it in the test case. [snip] -Vincent --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
