commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oglu...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/test/org/apache/commons/httpclient TestMethodsExternalHost.java
Date Fri, 17 Sep 2004 07:57:49 GMT
oglueck     2004/09/17 00:57:49

  Modified:    httpclient/src/test/org/apache/commons/httpclient
                        TestMethodsExternalHost.java
  Log:
  Do nut bugger Sun with our testing, but use ASF servers. Sun's one resulted in a failed
test case anyway.
  
  Revision  Changes    Path
  1.15      +7 -7      jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestMethodsExternalHost.java
  
  Index: TestMethodsExternalHost.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestMethodsExternalHost.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- TestMethodsExternalHost.java	13 Jun 2004 20:22:19 -0000	1.14
  +++ TestMethodsExternalHost.java	17 Sep 2004 07:57:49 -0000	1.15
  @@ -56,10 +56,10 @@
   
       // -------------------------------------------------------------- Constants
   
  -    private static final String externalHost = "java.sun.com";
  +    private static final String externalHost = "jakarta.apache.org";
       private static final int externalPort = 80;
       private static final String externalPath = "/index.html";
  -    private static final String externalUri = "http://java.sun.com/index.html";
  +    private static final String externalUri = "http://"+ externalHost + externalPath;
       private final String PROXY_HOST = System.getProperty("httpclient.test.proxyHost");
       private final String PROXY_PORT = System.getProperty("httpclient.test.proxyPort");
       private final String PROXY_USER = System.getProperty("httpclient.test.proxyUser");
  @@ -200,7 +200,7 @@
   
           // this file should not exist
           method = new GetMethod("http://www.pc.ibm.com/us/accessories/monitors/p_allmodelos.html");
  -        int statusCode = client.executeMethod(method);
  +        client.executeMethod(method);
   
           assertEquals(404, method.getStatusCode());
   
  
  
  

---------------------------------------------------------------------
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