Source code: org/apache/http/TestAll.java
1 /*
2 * $HeadURL: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/tags/4.0-alpha2/src/test/org/apache/http/TestAll.java $
3 * $Revision: 385851 $
4 * $Date: 2006-03-14 19:46:52 +0100 (Tue, 14 Mar 2006) $
5 * ====================================================================
6 *
7 * Copyright 1999-2006 The Apache Software Foundation
8 *
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ====================================================================
21 *
22 * This software consists of voluntary contributions made by many
23 * individuals on behalf of the Apache Software Foundation. For more
24 * information on the Apache Software Foundation, please see
25 * <http://www.apache.org/>.
26 *
27 */
28
29 package org.apache.http;
30
31 import org.apache.http.entity.TestAllEntity;
32 import org.apache.http.impl.TestAllImpl;
33 import org.apache.http.impl.entity.TestAllEntityImpl;
34 import org.apache.http.io.TestAllIO;
35 import org.apache.http.util.TestAllUtil;
36
37 import junit.framework.*;
38
39 public class TestAll extends TestCase {
40
41 public TestAll(String testName) {
42 super(testName);
43 }
44
45 public static Test suite() {
46 TestSuite suite = new TestSuite();
47
48 suite.addTest(TestAllUtil.suite());
49
50 suite.addTest(TestHttpExceptions.suite());
51 suite.addTest(TestNameValuePair.suite());
52 suite.addTest(TestHeader.suite());
53 suite.addTest(TestHeaderElement.suite());
54 suite.addTest(TestHttpStatus.suite());
55 suite.addTest(TestHttpVersion.suite());
56 suite.addTest(TestStatusLine.suite());
57 suite.addTest(TestRequestLine.suite());
58 suite.addTest(TestScheme.suite());
59 suite.addTest(TestHttpHost.suite());
60
61 suite.addTest(TestAllIO.suite());
62 suite.addTest(TestAllEntity.suite());
63 suite.addTest(TestAllImpl.suite());
64 suite.addTest(TestAllEntityImpl.suite());
65
66 return suite;
67 }
68
69 public static void main(String args[]) {
70 String[] testCaseName = { TestAll.class.getName() };
71 junit.textui.TestRunner.main(testCaseName);
72 }
73
74 }