001: /*
002: * $HeadURL: https://svn.apache.org/repos/asf/jakarta/httpcomponents/oac.hc3x/tags/HTTPCLIENT_3_1/src/test/org/apache/commons/httpclient/TestAll.java $
003: * $Revision: 480424 $
004: * $Date: 2006-11-29 06:56:49 +0100 (Wed, 29 Nov 2006) $
005: * ====================================================================
006: *
007: * Licensed to the Apache Software Foundation (ASF) under one or more
008: * contributor license agreements. See the NOTICE file distributed with
009: * this work for additional information regarding copyright ownership.
010: * The ASF licenses this file to You under the Apache License, Version 2.0
011: * (the "License"); you may not use this file except in compliance with
012: * the License. You may obtain a copy of the License at
013: *
014: * http://www.apache.org/licenses/LICENSE-2.0
015: *
016: * Unless required by applicable law or agreed to in writing, software
017: * distributed under the License is distributed on an "AS IS" BASIS,
018: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
019: * See the License for the specific language governing permissions and
020: * limitations under the License.
021: * ====================================================================
022: *
023: * This software consists of voluntary contributions made by many
024: * individuals on behalf of the Apache Software Foundation. For more
025: * information on the Apache Software Foundation, please see
026: * <http://www.apache.org/>.
027: */
028:
029: package org.apache.commons.httpclient;
030:
031: import org.apache.commons.httpclient.auth.TestAuthAll;
032: import org.apache.commons.httpclient.cookie.TestCookieAll;
033: import org.apache.commons.httpclient.params.TestParamsAll;
034:
035: import junit.framework.*;
036:
037: /**
038: * @author Remy Maucherat
039: * @author Rodney Waldhoff
040: * @version $Id: TestAll.java 480424 2006-11-29 05:56:49Z bayard $
041: */
042: public class TestAll extends TestCase {
043:
044: public TestAll(String testName) {
045: super (testName);
046: }
047:
048: public static Test suite() {
049: TestSuite suite = new TestSuite();
050: // Fundamentals
051: suite.addTest(TestHttpMethodFundamentals.suite());
052: suite.addTest(TestHttpStatus.suite());
053: suite.addTest(TestStatusLine.suite());
054: suite.addTest(TestRequestLine.suite());
055: suite.addTest(TestHeader.suite());
056: suite.addTest(TestHeaderElement.suite());
057: suite.addTest(TestHeaderOps.suite());
058: suite.addTest(TestResponseHeaders.suite());
059: suite.addTest(TestRequestHeaders.suite());
060: suite.addTest(TestStreams.suite());
061: suite.addTest(TestParameterParser.suite());
062: suite.addTest(TestParameterFormatter.suite());
063: suite.addTest(TestNVP.suite());
064: suite.addTest(TestMethodCharEncoding.suite());
065: suite.addTest(TestHttpVersion.suite());
066: suite.addTest(TestEffectiveHttpVersion.suite());
067: suite.addTest(TestHttpParser.suite());
068: suite.addTest(TestBadContentLength.suite());
069: suite.addTest(TestEquals.suite());
070: suite.addTest(TestQueryParameters.suite());
071: // Exceptions
072: suite.addTest(TestExceptions.suite());
073: // HTTP state management
074: suite.addTest(TestHttpState.suite());
075: suite.addTest(TestCookieAll.suite());
076: // Authentication
077: suite.addTest(TestCredentials.suite());
078: suite.addTest(TestAuthAll.suite());
079: // Redirects
080: suite.addTest(TestRedirects.suite());
081: // Connection management
082: suite.addTest(TestHttpConnection.suite());
083: suite.addTest(TestHttpConnectionManager.suite());
084: suite.addTest(TestConnectionPersistence.suite());
085: suite.addTest(TestIdleConnectionTimeout.suite());
086: suite.addTest(TestMethodAbort.suite());
087: // Preferences
088: suite.addTest(TestParamsAll.suite());
089: suite.addTest(TestVirtualHost.suite());
090: suite.addTest(TestHostConfiguration.suite());
091: // URIs
092: suite.addTest(TestURI.suite());
093: suite.addTest(TestURIUtil.suite());
094: suite.addTest(TestURIUtil2.suite());
095: // Method specific
096: suite.addTest(TestEntityEnclosingMethod.suite());
097: suite.addTest(TestPostParameterEncoding.suite());
098: suite.addTest(TestPostMethod.suite());
099: suite.addTest(TestPartsNoHost.suite());
100: suite.addTest(TestMultipartPost.suite());
101: // Non compliant behaviour
102: suite.addTest(TestNoncompliant.suite());
103: // Proxy
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: }
|