[Httpunit-commit] CVS: httpunit/src/com/meterware/pseudoserver HttpUserAgentTest.java,1.2,1.3
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2002-10-22 15:12:57
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/pseudoserver
In directory usw-pr-cvs1:/tmp/cvs-serv28743/src/com/meterware/pseudoserver
Modified Files:
HttpUserAgentTest.java
Log Message:
Use UnknownHostException instead of HttpServerNotFoundException
Index: HttpUserAgentTest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/pseudoserver/HttpUserAgentTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- HttpUserAgentTest.java 29 Aug 2002 18:39:11 -0000 1.2
+++ HttpUserAgentTest.java 22 Oct 2002 15:12:54 -0000 1.3
@@ -27,8 +27,8 @@
/**
- *
- * @author <a href="mailto:rus...@ac...">Russell Gold</a>
+ * A base class for test cases that use the pseudo server.
+ * @author <a href="mailto:rus...@ht...">Russell Gold</a>
**/
public class HttpUserAgentTest extends TestCase {
@@ -150,6 +150,16 @@
sb.append( '"' ).append( args[ i ] ).append( '"' );
}
sb.append( "}" );
+ return sb.toString();
+ }
+
+
+ protected String asBytes( String s ) {
+ StringBuffer sb = new StringBuffer();
+ char[] chars = s.toCharArray();
+ for (int i = 0; i < chars.length; i++) {
+ sb.append( Integer.toHexString( chars[i] ) ).append( " " );
+ }
return sb.toString();
}
|