    1   /*
    2    * $HeadURL: https://svn.apache.org/repos/asf/jakarta/httpcomponents/oac.hc3x/tags/HTTPCLIENT_3_1/src/test/org/apache/commons/httpclient/TestAll.java $
    3    * $Revision: 480424 $
    4    * $Date: 2006-11-29 06:56:49 +0100 (Wed, 29 Nov 2006) $
    5    * ====================================================================
    6    *
    7    *  Licensed to the Apache Software Foundation (ASF) under one or more
    8    *  contributor license agreements.  See the NOTICE file distributed with
    9    *  this work for additional information regarding copyright ownership.
    10   *  The ASF licenses this file to You under the Apache License, Version 2.0
    11   *  (the "License"); you may not use this file except in compliance with
    12   *  the License.  You may obtain a copy of the License at
    13   *
    14   *      http://www.apache.org/licenses/LICENSE-2.0
    15   *
    16   *  Unless required by applicable law or agreed to in writing, software
    17   *  distributed under the License is distributed on an "AS IS" BASIS,
    18   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    19   *  See the License for the specific language governing permissions and
    20   *  limitations under the License.
    21   * ====================================================================
    22   *
    23   * This software consists of voluntary contributions made by many
    24   * individuals on behalf of the Apache Software Foundation.  For more
    25   * information on the Apache Software Foundation, please see
    26   * <http://www.apache.org/>.
    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          // Fundamentals
    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          // Exceptions
    72          suite.addTest(TestExceptions.suite());
    73          // HTTP state management
    74          suite.addTest(TestHttpState.suite());
    75          suite.addTest(TestCookieAll.suite());
    76          // Authentication
    77          suite.addTest(TestCredentials.suite());
    78          suite.addTest(TestAuthAll.suite());
    79          // Redirects
    80          suite.addTest(TestRedirects.suite());
    81          // Connection management
    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          // Preferences
    88          suite.addTest(TestParamsAll.suite());
    89          suite.addTest(TestVirtualHost.suite());
    90          suite.addTest(TestHostConfiguration.suite());
    91          // URIs
    92          suite.addTest(TestURI.suite());
    93          suite.addTest(TestURIUtil.suite());
    94          suite.addTest(TestURIUtil2.suite());
    95          // Method specific
    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         // 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 }