[Httpunit-commit] CVS: httpunit/test/com/meterware/httpunit PseudoServerTest.java,1.10,1.11
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2001-05-31 16:44:17
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit
In directory usw-pr-cvs1:/tmp/cvs-serv26912/test/com/meterware/httpunit
Modified Files:
PseudoServerTest.java
Log Message:
Corrected exceptions when failing to connect
Index: PseudoServerTest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/PseudoServerTest.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- PseudoServerTest.java 2001/03/23 20:50:41 1.10
+++ PseudoServerTest.java 2001/05/31 16:44:15 1.11
@@ -49,6 +49,16 @@
}
+ public void testNoSuchServer() throws Exception {
+ WebConversation wc = new WebConversation();
+
+ try {
+ WebResponse response = wc.getResponse( "http://no.such.host" );
+ } catch (HttpNotFoundException e) {
+ }
+ }
+
+
public void testNotFound() throws Exception {
PseudoServer ps = new PseudoServer();
int port = ps.getConnectedPort();
|