KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cactus > sample > servlet > unit > TestShareAll


1 /*
2  * ========================================================================
3  *
4  * Copyright 2001-2003 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
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,v 1.4 2004/02/29 16:36:44 vmassol Exp $
30  */

31 public abstract class TestShareAll
32 {
33     /**
34      * @return a test suite (<code>TestSuite</code>) that includes all shared
35      * tests
36      */

37     public static Test suite()
38     {
39         TestSuite suite = new TestSuite(
40             "Cactus unit tests for all J2EE APIs");
41
42         // Note: This test needs to run first. See the comments in the
43
// test class for more information on why
44
suite.addTestSuite(TestClientServerSynchronization.class);
45
46         // Lifecycle tests
47
suite.addTestSuite(TestGlobalBeginEnd.class);
48
49         // ServletTestCase related tests
50
suite.addTestSuite(TestServerSideExceptions.class);
51         suite.addTestSuite(TestSetUpTearDown.class);
52         suite.addTestSuite(TestSetURL.class);
53         suite.addTestSuite(TestTearDownException.class);
54         suite.addTestSuite(TestBasicAuthentication.class);
55         suite.addTestSuite(TestHttpUnitIntegration.class);
56         suite.addTestSuite(TestServletRedirectorOverride.class);
57         suite.addTestSuite(TestHttpParameters.class);
58         suite.addTestSuite(TestHttpSession.class);
59         suite.addTestSuite(TestHttpResponse.class);
60         suite.addTestSuite(TestCookie.class);
61         suite.addTestSuite(TestRequestDispatcher.class);
62         suite.addTestSuite(TestHttpHeaders.class);
63         suite.addTestSuite(TestHttpRequest.class);
64         suite.addTestSuite(TestServletConfig.class);
65         suite.addTestSuite(TestServletContext.class);
66         suite.addTest(TestJUnitTestCaseWrapper.suite());
67         
68         // JspTestCase related tests
69
suite.addTestSuite(TestJspOut.class);
70         suite.addTestSuite(TestJspPageContext.class);
71
72         return suite;
73     }
74 }
75
Popular Tags