[Httpunit-commit] CVS: httpunit/test/com/meterware/httpunit WebClientTest.java,1.24,1.25
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2006-03-09 01:51:45
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18482/test/com/meterware/httpunit Modified Files: WebClientTest.java Log Message: remove test that only works if there is web server running on port 80 Index: WebClientTest.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/WebClientTest.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- WebClientTest.java 4 Oct 2004 23:45:35 -0000 1.24 +++ WebClientTest.java 9 Mar 2006 01:51:36 -0000 1.25 @@ -535,7 +535,7 @@ }); defineResource( "whereAmI", new PseudoServlet() { - public WebResource getGetResponse() throws IOException { + public WebResource getGetResponse() { WebResource webResource = new WebResource( "found host header: " + getHeader( "Host" ) ); webResource.addHeader( "Set-Cookie: type=short" ); return webResource; @@ -543,7 +543,7 @@ } ); defineResource( "checkCookies", new PseudoServlet() { - public WebResource getGetResponse() throws IOException { + public WebResource getGetResponse() { return new WebResource( "found cookies: " + getHeader( "Cookie" ) ); } } ); @@ -558,20 +558,4 @@ } - public void testHostHeaderWithDNSOverride() throws Exception { - WebConversation wc = new WebConversation(); - wc.getClientProperties().setDnsListener( new DNSListener() { - public String getIpAddress( String hostName ) { return "127.0.0.1"; } - }); - - try { - wc.getResponse( "http://meterware.com" ); - } catch (ConnectException e) { - } catch (SocketException e) { - } - - assertEquals( "Submitted host header", "meterware.com", wc.getHeaderField( "Host" ) ); - } - - } |