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.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 238816 2004-02-29 16:36:46Z vmassol $
32: */
33: public class TestJettyAll extends TestCase {
34: /**
35: * @return a <code>JettyTestSetup</code> test suite that wraps all our
36: * tests so that Jetty will be started before the tests execute
37: */
38: public static Test suite() {
39: TestSuite suite = new TestSuite(
40: "Cactus unit tests executing in Jetty");
41:
42: // Functional tests
43: suite
44: .addTestSuite(org.apache.cactus.sample.servlet.TestSampleServlet.class);
45: suite
46: .addTestSuite(org.apache.cactus.sample.servlet.TestSampleServletConfig.class);
47: suite
48: .addTestSuite(org.apache.cactus.sample.servlet.TestSampleTag.class);
49: suite
50: .addTestSuite(org.apache.cactus.sample.servlet.TestSampleBodyTag.class);
51: suite
52: .addTestSuite(org.apache.cactus.sample.servlet.TestSampleFilter.class);
53:
54: return new JettyTestSetup(suite);
55: }
56: }
|