dblevins 2004/12/20 01:56:41
Modified: modules/core/src/test/org/openejb/server/httpd
HttpServerTest.java
Log:
Added IOException to onMessage. Fixed the assert methods in the tests.
Implemented a couple methods in HttpRequestImpl.
Revision Changes Path
1.4 +4 -4
openejb/modules/core/src/test/org/openejb/server/httpd/HttpServerTest.java
Index: HttpServerTest.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/test/org/openejb/server/httpd/HttpServerTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- HttpServerTest.java 19 Dec 2004 06:17:15 -0000 1.3
+++ HttpServerTest.java 20 Dec 2004 06:56:41 -0000 1.4
@@ -84,7 +84,7 @@
connection = (HttpURLConnection) url.openConnection();
int responseCode = connection.getResponseCode();
- assertEquals("HTTP response code should be 204", responseCode,
HttpURLConnection.HTTP_NO_CONTENT);
+ assertEquals("HTTP response code should be 204",
HttpURLConnection.HTTP_NO_CONTENT, responseCode);
} finally {
connection.disconnect();
daemon.doStop();
@@ -106,7 +106,7 @@
connection = (HttpURLConnection) url.openConnection();
int responseCode = connection.getResponseCode();
- assertEquals("HTTP response code should be 204", responseCode,
HttpURLConnection.HTTP_NO_CONTENT);
+ assertEquals("HTTP response code should be 204",
HttpURLConnection.HTTP_NO_CONTENT, responseCode);
} finally {
connection.disconnect();
serviceStack.doStop();
@@ -133,7 +133,7 @@
connection = (HttpURLConnection) url.openConnection();
int responseCode = connection.getResponseCode();
- assertEquals("HTTP response code should be 204", responseCode,
HttpURLConnection.HTTP_NO_CONTENT);
+ assertEquals("HTTP response code should be 204",
HttpURLConnection.HTTP_NO_CONTENT, responseCode);
} finally {
connection.disconnect();
serviceStack.doStop();