jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From christian_wei...@sonynetservices.com
Subject Re: setUp does not run with ServletTestSuite
Date Fri, 22 Aug 2003 08:31:59 GMT
Hi!

That is how we implement a suite ... and it works fine:

package com....usermanagement.cactus;

import org.apache.cactus.ServletTestCase;

import junit.framework.Test;
import junit.framework.TestSuite;


public class AllCactusTests extends ServletTestCase {
 
        public AllCactusTests(String theName) {
                super(theName);
        }
 
        public static Test suite() {
                TestSuite suite =
                        new TestSuite("Test for 
com....usermanagement.cactus");
                //$JUnit-BEGIN$
                suite.addTestSuite(UserManagementTest.class);
        suite.addTestSuite(ServiceTest.class);
        suite.addTestSuite(UserTest.class);
 
                //$JUnit-END$
                return suite;
        }
}

Hope this helps,
Chris.

Mime
View raw message