KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cactus > sample > jetty > TestJettyAll


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.jetty;
21
22 import org.apache.cactus.extension.jetty.JettyTestSetup;
23
24 import junit.framework.Test;
25 import junit.framework.TestCase;
26 import junit.framework.TestSuite;
27
28 /**
29  * Run all tests inside the Jetty container.
30  *
31  * @version $Id: TestJettyAll.java,v 1.3 2004/02/29 16:36:46 vmassol Exp $
32  */

33 public class TestJettyAll extends TestCase
34 {
35     /**
36      * @return a <code>JettyTestSetup</code> test suite that wraps all our
37      * tests so that Jetty will be started before the tests execute
38      */

39     public static Test suite()
40     {
41         TestSuite suite = new TestSuite(
42             "Cactus unit tests executing in Jetty");
43
44         // Functional tests
45
suite.addTestSuite(
46              org.apache.cactus.sample.servlet.TestSampleServlet.class);
47          suite.addTestSuite(
48              org.apache.cactus.sample.servlet.TestSampleServletConfig.class);
49          suite.addTestSuite(
50              org.apache.cactus.sample.servlet.TestSampleTag.class);
51          suite.addTestSuite(
52              org.apache.cactus.sample.servlet.TestSampleBodyTag.class);
53          suite.addTestSuite(
54              org.apache.cactus.sample.servlet.TestSampleFilter.class);
55
56         return new JettyTestSetup(suite);
57     }
58 }
59
Popular Tags