1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 package org.apache.commons.httpclient;
30
31 import org.apache.commons.httpclient.auth.TestAuthAll;
32 import org.apache.commons.httpclient.cookie.TestCookieAll;
33 import org.apache.commons.httpclient.params.TestParamsAll;
34
35 import junit.framework.*;
36
37 /***
38 * @author Remy Maucherat
39 * @author Rodney Waldhoff
40 * @version $Id: TestAll.java 480424 2006-11-29 05:56:49Z bayard $
41 */
42 public class TestAll extends TestCase {
43
44 public TestAll(String testName) {
45 super(testName);
46 }
47
48 public static Test suite() {
49 TestSuite suite = new TestSuite();
50
51 suite.addTest(TestHttpMethodFundamentals.suite());
52 suite.addTest(TestHttpStatus.suite());
53 suite.addTest(TestStatusLine.suite());
54 suite.addTest(TestRequestLine.suite());
55 suite.addTest(TestHeader.suite());
56 suite.addTest(TestHeaderElement.suite());
57 suite.addTest(TestHeaderOps.suite());
58 suite.addTest(TestResponseHeaders.suite());
59 suite.addTest(TestRequestHeaders.suite());
60 suite.addTest(TestStreams.suite());
61 suite.addTest(TestParameterParser.suite());
62 suite.addTest(TestParameterFormatter.suite());
63 suite.addTest(TestNVP.suite());
64 suite.addTest(TestMethodCharEncoding.suite());
65 suite.addTest(TestHttpVersion.suite());
66 suite.addTest(TestEffectiveHttpVersion.suite());
67 suite.addTest(TestHttpParser.suite());
68 suite.addTest(TestBadContentLength.suite());
69 suite.addTest(TestEquals.suite());
70 suite.addTest(TestQueryParameters.suite());
71
72 suite.addTest(TestExceptions.suite());
73
74 suite.addTest(TestHttpState.suite());
75 suite.addTest(TestCookieAll.suite());
76
77 suite.addTest(TestCredentials.suite());
78 suite.addTest(TestAuthAll.suite());
79
80 suite.addTest(TestRedirects.suite());
81
82 suite.addTest(TestHttpConnection.suite());
83 suite.addTest(TestHttpConnectionManager.suite());
84 suite.addTest(TestConnectionPersistence.suite());
85 suite.addTest(TestIdleConnectionTimeout.suite());
86 suite.addTest(TestMethodAbort.suite());
87
88 suite.addTest(TestParamsAll.suite());
89 suite.addTest(TestVirtualHost.suite());
90 suite.addTest(TestHostConfiguration.suite());
91
92 suite.addTest(TestURI.suite());
93 suite.addTest(TestURIUtil.suite());
94 suite.addTest(TestURIUtil2.suite());
95
96 suite.addTest(TestEntityEnclosingMethod.suite());
97 suite.addTest(TestPostParameterEncoding.suite());
98 suite.addTest(TestPostMethod.suite());
99 suite.addTest(TestPartsNoHost.suite());
100 suite.addTest(TestMultipartPost.suite());
101
102 suite.addTest(TestNoncompliant.suite());
103
104 suite.addTest(TestProxy.suite());
105 suite.addTest(TestProxyWithRedirect.suite());
106 return suite;
107 }
108
109 public static void main(String args[]) {
110 String[] testCaseName = { TestAll.class.getName() };
111 junit.textui.TestRunner.main(testCaseName);
112 }
113
114 }