/[Apache-SVN]/jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/TestHttpMethodFundamentals.java
ViewVC logotype

Diff of /jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/TestHttpMethodFundamentals.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/TestHttpMethodFundamentals.java	2005/05/12 17:01:17	169848
+++ jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/TestHttpMethodFundamentals.java	2005/05/12 17:05:07	169849
@@ -32,7 +32,6 @@ import java.io.InputStreamReader;
 import java.io.Reader;
 
 import org.apache.commons.httpclient.methods.GetMethod;
-import org.apache.commons.httpclient.protocol.Protocol;
 import org.apache.commons.httpclient.server.HttpService;
 import org.apache.commons.httpclient.server.SimpleRequest;
 import org.apache.commons.httpclient.server.SimpleResponse;
@@ -126,71 +125,6 @@ public class TestHttpMethodFundamentals
         }
     }
 
-    public void testRelativeURLHitWithDefaultHost() throws IOException {
-        this.server.setHttpService(new EchoService());
-        // Set default host
-        this.client.getHostConfiguration().setHost(
-                this.server.getLocalAddress(), 
-                this.server.getLocalPort(),
-                Protocol.getProtocol("http"));
-        
-        GetMethod httpget = new GetMethod("/test/");
-        try {
-            this.client.executeMethod(httpget);
-            assertEquals(HttpStatus.SC_OK, httpget.getStatusCode());
-        } finally {
-            httpget.releaseConnection();
-        }
-    }
-
-    public void testRelativeURLHitWithoutDefaultHost() throws IOException {
-        this.server.setHttpService(new EchoService());
-        // reset default host configuration
-        this.client.setHostConfiguration(new HostConfiguration());
-        
-        GetMethod httpget = new GetMethod("/test/");
-        try {
-            this.client.executeMethod(httpget);
-            fail("IllegalArgumentException should have been thrown");
-        } catch (IllegalArgumentException expected) { 
-        } finally {
-            httpget.releaseConnection();
-        }
-    }
-
-    public void testAbsoluteURLHitWithoutDefaultHost() throws IOException {
-        this.server.setHttpService(new EchoService());
-        // reset default host configuration
-        this.client.setHostConfiguration(new HostConfiguration());
-        
-        GetMethod httpget = new GetMethod("http://" + 
-                this.server.getLocalAddress() + ":" + this.server.getLocalPort() + "/test/");
-        try {
-            this.client.executeMethod(httpget);
-            assertEquals(HttpStatus.SC_OK, httpget.getStatusCode());
-        } finally {
-            httpget.releaseConnection();
-        }
-    }
-
-    public void testAbsoluteURLHitWithDefaultHost() throws IOException {
-        this.server.setHttpService(new EchoService());
-        // Somewhere out there in pampa
-        this.client.getHostConfiguration().setHost(
-                "somewhere.in.pampa", 
-                9999,
-                Protocol.getProtocol("http"));
-        
-        GetMethod httpget = new GetMethod("http://" + 
-                this.server.getLocalAddress() + ":" + this.server.getLocalPort() + "/test/");
-        try {
-            this.client.executeMethod(httpget);
-            assertEquals(HttpStatus.SC_OK, httpget.getStatusCode());
-        } finally {
-            httpget.releaseConnection();
-        }
-    }
-
     public void testHttpMethodBasePaths() throws Exception {
         HttpMethod simple = new FakeHttpMethod();
         String[] paths = {

 

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26