01: /*
02: * ========================================================================
03: *
04: * Copyright 2001-2003 The Apache Software Foundation.
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: *
18: * ========================================================================
19: */
20: package org.apache.cactus.sample.servlet.unit;
21:
22: import junit.framework.Test;
23: import junit.framework.TestSuite;
24:
25: /**
26: * Test suite containing all test cases that should be run on all J2EE
27: * APIs.
28: *
29: * @version $Id: TestShareAll.java 238816 2004-02-29 16:36:46Z vmassol $
30: */
31: public abstract class TestShareAll {
32: /**
33: * @return a test suite (<code>TestSuite</code>) that includes all shared
34: * tests
35: */
36: public static Test suite() {
37: TestSuite suite = new TestSuite(
38: "Cactus unit tests for all J2EE APIs");
39:
40: // Note: This test needs to run first. See the comments in the
41: // test class for more information on why
42: suite.addTestSuite(TestClientServerSynchronization.class);
43:
44: // Lifecycle tests
45: suite.addTestSuite(TestGlobalBeginEnd.class);
46:
47: // ServletTestCase related tests
48: suite.addTestSuite(TestServerSideExceptions.class);
49: suite.addTestSuite(TestSetUpTearDown.class);
50: suite.addTestSuite(TestSetURL.class);
51: suite.addTestSuite(TestTearDownException.class);
52: suite.addTestSuite(TestBasicAuthentication.class);
53: suite.addTestSuite(TestHttpUnitIntegration.class);
54: suite.addTestSuite(TestServletRedirectorOverride.class);
55: suite.addTestSuite(TestHttpParameters.class);
56: suite.addTestSuite(TestHttpSession.class);
57: suite.addTestSuite(TestHttpResponse.class);
58: suite.addTestSuite(TestCookie.class);
59: suite.addTestSuite(TestRequestDispatcher.class);
60: suite.addTestSuite(TestHttpHeaders.class);
61: suite.addTestSuite(TestHttpRequest.class);
62: suite.addTestSuite(TestServletConfig.class);
63: suite.addTestSuite(TestServletContext.class);
64: suite.addTest(TestJUnitTestCaseWrapper.suite());
65:
66: // JspTestCase related tests
67: suite.addTestSuite(TestJspOut.class);
68: suite.addTestSuite(TestJspPageContext.class);
69:
70: return suite;
71: }
72: }
|