KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > httpunit > FunctionalTests


1 /*
2  * Copyright 2002-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package test.httpunit;
18 import junit.framework.Test;
19 import junit.framework.TestSuite;
20 import test.AxisTestBase;
21
22 /**
23  * test httpunit
24  */

25 public class FunctionalTests extends AxisTestBase {
26
27     public FunctionalTests(String JavaDoc s) {
28         super(s);
29     }
30
31
32     /**
33      * here are the tests we run
34      * @return suite of tests
35      * @throws Exception
36      */

37     public static Test suite() throws Exception JavaDoc {
38         TestSuite suite = new TestSuite();
39         suite.addTestSuite(ServicesTest.class);
40         suite.addTestSuite(JwsTest.class);
41         if(isPropertyTrue("test.functional.httpunit.jsp")) {
42             suite.addTestSuite(JspTest.class);
43         }
44         if(isPropertyTrue("test.functional.httpunit.adminservlet")) {
45             suite.addTestSuite(AdminTest.class);
46         }
47         return suite;
48     }
49 }
50
Popular Tags