commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/params TestHttpParams.java
Date Sun, 31 Oct 2004 14:42:59 GMT
olegk       2004/10/31 06:42:59

  Modified:    httpclient/src/test/org/apache/commons/httpclient
                        HttpClientTestBase.java
                        TestEffectiveHttpVersion.java
                        TestHttpMethodFundamentals.java
                        TestMethodAbort.java TestMethodCharEncoding.java
                        TestMultipartPost.java TestPostMethod.java
                        TestRedirects.java TestResponseHeaders.java
                        TestVirtualHost.java
               httpclient/src/test/org/apache/commons/httpclient/auth
                        TestBasicAuth.java
               httpclient/src/test/org/apache/commons/httpclient/cookie
                        TestCookieIgnoreSpec.java
               httpclient/src/test/org/apache/commons/httpclient/params
                        TestHttpParams.java
  Log:
  Instantiate SimpleHttpServer only once per test unit
  
  Revision  Changes    Path
  1.3       +7 -9      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/HttpClientTestBase.java
  
  Index: HttpClientTestBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/HttpClientTestBase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HttpClientTestBase.java	27 Feb 2004 19:01:33 -0000	1.2
  +++ HttpClientTestBase.java	31 Oct 2004 14:42:59 -0000	1.3
  @@ -54,8 +54,10 @@
       protected SimpleHttpServer server = null;
   
       // ------------------------------------------------------------ Constructor
  -    public HttpClientTestBase(String testName) {
  +    public HttpClientTestBase(final String testName) throws IOException {
           super(testName);
  +        // configure the server
  +        this.server = new SimpleHttpServer(); // use arbitrary port
       }
   
       // ------------------------------------------------------------------- Main
  @@ -73,10 +75,6 @@
       // ------------------------------------------------- TestCase setup/shutdown
   
       public void setUp() throws IOException {
  -        // configure the server
  -        this.server = new SimpleHttpServer(); // use arbitrary port
  -
  -        // configure the client
           this.client = new HttpClient();
           this.client.getHostConfiguration().setHost(
               this.server.getLocalAddress(), 
  
  
  
  1.4       +5 -5      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestEffectiveHttpVersion.java
  
  Index: TestEffectiveHttpVersion.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestEffectiveHttpVersion.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestEffectiveHttpVersion.java	6 Oct 2004 03:39:58 -0000	1.3
  +++ TestEffectiveHttpVersion.java	31 Oct 2004 14:42:59 -0000	1.4
  @@ -47,7 +47,7 @@
   public class TestEffectiveHttpVersion extends HttpClientTestBase {
   
       // ------------------------------------------------------------ Constructor
  -    public TestEffectiveHttpVersion(String testName) {
  +    public TestEffectiveHttpVersion(final String testName) throws IOException {
           super(testName);
       }
   
  
  
  
  1.3       +5 -5      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestHttpMethodFundamentals.java
  
  Index: TestHttpMethodFundamentals.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestHttpMethodFundamentals.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestHttpMethodFundamentals.java	31 Oct 2004 14:04:13 -0000	1.2
  +++ TestHttpMethodFundamentals.java	31 Oct 2004 14:42:59 -0000	1.3
  @@ -51,7 +51,7 @@
    */
   public class TestHttpMethodFundamentals extends HttpClientTestBase {
   
  -    public TestHttpMethodFundamentals(String testName) {
  +    public TestHttpMethodFundamentals(final String testName) throws IOException {
           super(testName);
       }
   
  
  
  
  1.3       +5 -5      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestMethodAbort.java
  
  Index: TestMethodAbort.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestMethodAbort.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestMethodAbort.java	14 Sep 2004 15:50:40 -0000	1.2
  +++ TestMethodAbort.java	31 Oct 2004 14:42:59 -0000	1.3
  @@ -52,7 +52,7 @@
   public class TestMethodAbort extends HttpClientTestBase {
   
       // ------------------------------------------------------------ Constructor
  -    public TestMethodAbort(String testName) {
  +    public TestMethodAbort(final String testName) throws IOException {
           super(testName);
       }
   
  
  
  
  1.12      +1 -1      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestMethodCharEncoding.java
  
  Index: TestMethodCharEncoding.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestMethodCharEncoding.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- TestMethodCharEncoding.java	7 Oct 2004 16:14:15 -0000	1.11
  +++ TestMethodCharEncoding.java	31 Oct 2004 14:42:59 -0000	1.12
  @@ -94,7 +94,7 @@
   
       // ------------------------------------------------------------ Constructor
   
  -    public TestMethodCharEncoding(String testName) {
  +    public TestMethodCharEncoding(final String testName) throws IOException {
           super(testName);
       }
   
  
  
  
  1.2       +6 -4      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestMultipartPost.java
  
  Index: TestMultipartPost.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestMultipartPost.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestMultipartPost.java	6 Oct 2004 03:39:58 -0000	1.1
  +++ TestMultipartPost.java	31 Oct 2004 14:42:59 -0000	1.2
  @@ -31,6 +31,8 @@
   
   package org.apache.commons.httpclient;
   
  +import java.io.IOException;
  +
   import junit.framework.Test;
   import junit.framework.TestSuite;
   
  @@ -48,7 +50,7 @@
    */
   public class TestMultipartPost extends HttpClientTestBase {
   
  -    public TestMultipartPost(String testName) {
  +    public TestMultipartPost(final String testName) throws IOException {
           super(testName);
       }
   
  
  
  
  1.2       +6 -5      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestPostMethod.java
  
  Index: TestPostMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestPostMethod.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestPostMethod.java	7 Oct 2004 16:14:15 -0000	1.1
  +++ TestPostMethod.java	31 Oct 2004 14:42:59 -0000	1.2
  @@ -31,6 +31,7 @@
   package org.apache.commons.httpclient;
   
   import java.io.ByteArrayOutputStream;
  +import java.io.IOException;
   
   import org.apache.commons.httpclient.methods.PostMethod;
   import org.apache.commons.httpclient.methods.RequestEntity;
  @@ -59,7 +60,7 @@
       static final NameValuePair PAIR1 = new NameValuePair(NAME1, VALUE1);
       static final NameValuePair PAIR2 = new NameValuePair(NAME2, VALUE2);
   
  -    public TestPostMethod(String testName) {
  +    public TestPostMethod(final String testName) throws IOException {
           super(testName);
       }
   
  
  
  
  1.5       +5 -5      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestRedirects.java
  
  Index: TestRedirects.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestRedirects.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestRedirects.java	2 Oct 2004 21:22:03 -0000	1.4
  +++ TestRedirects.java	31 Oct 2004 14:42:59 -0000	1.5
  @@ -57,7 +57,7 @@
   public class TestRedirects extends HttpClientTestBase {
   
       // ------------------------------------------------------------ Constructor
  -    public TestRedirects(String testName) {
  +    public TestRedirects(final String testName) throws IOException {
           super(testName);
       }
   
  
  
  
  1.17      +5 -5      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestResponseHeaders.java
  
  Index: TestResponseHeaders.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestResponseHeaders.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- TestResponseHeaders.java	31 Oct 2004 14:04:13 -0000	1.16
  +++ TestResponseHeaders.java	31 Oct 2004 14:42:59 -0000	1.17
  @@ -56,7 +56,7 @@
       private AccessibleHttpConnectionManager connectionManager;
       
       // ------------------------------------------------------------ Constructor
  -    public TestResponseHeaders(String testName) {
  +    public TestResponseHeaders(final String testName) throws IOException {
           super(testName);
       }
       
  
  
  
  1.2       +5 -5      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestVirtualHost.java
  
  Index: TestVirtualHost.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestVirtualHost.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestVirtualHost.java	6 Oct 2004 17:32:04 -0000	1.1
  +++ TestVirtualHost.java	31 Oct 2004 14:42:59 -0000	1.2
  @@ -50,7 +50,7 @@
   public class TestVirtualHost extends HttpClientTestBase {
   
       // ------------------------------------------------------------ Constructor
  -    public TestVirtualHost(String testName) {
  +    public TestVirtualHost(final String testName) throws IOException {
           super(testName);
       }
   
  
  
  
  1.5       +5 -5      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/auth/TestBasicAuth.java
  
  Index: TestBasicAuth.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/auth/TestBasicAuth.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestBasicAuth.java	28 Sep 2004 21:08:48 -0000	1.4
  +++ TestBasicAuth.java	31 Oct 2004 14:42:59 -0000	1.5
  @@ -59,7 +59,7 @@
   public class TestBasicAuth extends HttpClientTestBase {
   
       // ------------------------------------------------------------ Constructor
  -    public TestBasicAuth(String testName) {
  +    public TestBasicAuth(final String testName) throws IOException {
           super(testName);
       }
   
  
  
  
  1.5       +6 -6      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/cookie/TestCookieIgnoreSpec.java
  
  Index: TestCookieIgnoreSpec.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/cookie/TestCookieIgnoreSpec.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestCookieIgnoreSpec.java	28 Sep 2004 21:08:48 -0000	1.4
  +++ TestCookieIgnoreSpec.java	31 Oct 2004 14:42:59 -0000	1.5
  @@ -55,8 +55,8 @@
   
       // ------------------------------------------------------------ Constructor
   
  -    public TestCookieIgnoreSpec(String name) {
  -        super(name);
  +    public TestCookieIgnoreSpec(final String testName) throws IOException {
  +        super(testName);
       }
   
       // ------------------------------------------------------- TestCase Methods
  
  
  
  1.4       +5 -5      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/params/TestHttpParams.java
  
  Index: TestHttpParams.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/params/TestHttpParams.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestHttpParams.java	6 Oct 2004 17:32:04 -0000	1.3
  +++ TestHttpParams.java	31 Oct 2004 14:42:59 -0000	1.4
  @@ -58,7 +58,7 @@
   public class TestHttpParams extends HttpClientTestBase {
   
       // ------------------------------------------------------------ Constructor
  -    public TestHttpParams(String testName) {
  +    public TestHttpParams(final String testName) throws IOException {
           super(testName);
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message