Hi Aaron,

AFAIR, in our current implementation, the suite method is called on the
client side only by the JUnit test runner.  On the server side, we are
simply instantiating a Cactus TestCase and calling the testXXX method (we
support setUp()/tearDown()).

So the test suite will definitely work on the client side but not on the
server side.

The implementation class is called ServerTestCaseCaller if you're interested
to check the code.

It might be possible to add support for this but we haven't thought about
it.

Thanks
-Vincent

> -----Original Message-----
> From: Korver, Aaron [mailto:[EMAIL PROTECTED]
> Sent: mardi 7 d�cembre 2004 21:09
> To: '[EMAIL PROTECTED]'
> Subject: TestSetup wrapper?
> 
> Has anyone tried to use the TestSetup decorator with cactus or without for
> that matter.  I'm trying to do some setup 1 per Test class and it doesn't
> seem to be working.  I could just use a static block, but was wondering if
> anyone on the list had any thoughts first.  Note that this is just the
> skeleton.
> 
> See suite() method below.
> 
> public static Test suite() {
> 
> TestSuite suite = new TestSuite(XXXX.class);
> TestSetup wrapper = new TestSetup(suite) {
>       protected void setup() {
>               oneTimeSetup();
>       }
>       protected void tearDown() {
>               oneTimeTearDown();
>       }
> };
> return wrapper;
> }
> 
> public static void oneTimeSetup() {
> //do stuff only once
> }
> 
> public static void oneTimeTearDown() {
> //do stuff only once
> }


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to