KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cactus > ServletTestSuite


1 /*
2  * ========================================================================
3  *
4  * Copyright 2001-2004 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;
21
22 import org.apache.cactus.internal.AbstractTestSuite;
23
24 import junit.framework.Test;
25
26 /**
27  * {@link junit.framework.TestSuite} wrapper that wraps all the tests of the
28  * suite in Cactus {@link ServletTestCase} objects.
29  *
30  * @version $Id: ServletTestSuite.java,v 1.1 2004/05/22 11:34:45 vmassol Exp $
31  * @since 1.5
32  */

33 public class ServletTestSuite extends AbstractTestSuite
34 {
35     /**
36      * @see AbstractTestSuite#AbstractTestSuite()
37      */

38     public ServletTestSuite()
39     {
40     }
41
42     /**
43      * @see AbstractTestSuite#AbstractTestSuite(Class)
44      */

45     public ServletTestSuite(final Class JavaDoc theClass)
46     {
47         super(theClass);
48     }
49
50     /**
51      * @see AbstractTestSuite#AbstractTestSuite(String)
52      */

53     public ServletTestSuite(String JavaDoc theName)
54     {
55         super(theName);
56     }
57
58     /**
59      * @see AbstractTestSuite#addTest(Test)
60      *
61      * Note: This method is overriden from {@link AbstractTestSuite} because
62      * we do not want to create a binary dependency on end user classes
63      * with {@link AbstractTestSuite}.
64      */

65     public void addTest(Test theTest)
66     {
67         super.addTest(theTest);
68     }
69
70     /**
71      * @see AbstractTestSuite#addTestSuite(Class)
72      *
73      * Note: This method is overriden from {@link AbstractTestSuite} because
74      * we do not want to create a binary dependency on end user classes
75      * with {@link AbstractTestSuite}.
76      */

77     public void addTestSuite(Class JavaDoc theTestClass)
78     {
79         super.addTestSuite(theTestClass);
80     }
81     
82     /**
83      * @see AbstractTestSuite#createTestSuite(Class)
84      */

85     protected Test createTestSuite(Class JavaDoc theTestClass)
86     {
87         return new ServletTestSuite(theTestClass);
88     }
89
90     /**
91      * @see AbstractTestSuite#createCactusTestCase(String, Test)
92      */

93     protected Test createCactusTestCase(String JavaDoc theName, Test theTest)
94     {
95         return new ServletTestCase(theName, theTest);
96     }
97 }
98
Popular Tags