Hi, > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: mardi 1 mars 2005 13:57 > To: cactus-user@jakarta.apache.org > Subject: beginXXX and endXXX called twice > > Hi everybody... This is my first attempt with Cactus and there something > weird > happening : every beginXXX and endXXX methods are called twice.
There's no reason. The only possibility would be that you do some tricky things and register some tests twice. > > I understand that Cactus create two instances of the class, one for the > client side and > one for the server side but I don't understand why I get these double > execution. Yep, there's no reason. [snip] > public class ApplicationTestSuite extends ServletTestSuite > { > protected static Log log = > LogFactory.getLog(ApplicationTestSuite.class); > > public void run(junit.framework.TestResult theResult) > { [snip] You should really use a TestSetup rather than do this: - create a class that extends TestSetup and put the code in setUp() and teardown() - in your TestCommon wrap a standard TestSuite with your TestSetup. Maybe that'll fix the pb... [snip] Thanks -Vincent --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]