cmlenz 2003/06/09 13:28:47
Modified: samples/servlet/src/test-cactus/share/org/apache/cactus/sample/unit
TestHttpResponse.java
Log:
Use the new WebResponse.getStatusCode() method
Revision Changes Path
1.6 +3 -3
jakarta-cactus/samples/servlet/src/test-cactus/share/org/apache/cactus/sample/unit/TestHttpResponse.java
Index: TestHttpResponse.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/samples/servlet/src/test-cactus/share/org/apache/cactus/sample/unit/TestHttpResponse.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- TestHttpResponse.java 26 May 2003 12:15:14 -0000 1.5
+++ TestHttpResponse.java 9 Jun 2003 20:28:47 -0000 1.6
@@ -289,7 +289,7 @@
public void endRedirect(WebResponse theResponse) throws IOException
{
assertEquals(HttpServletResponse.SC_MOVED_TEMPORARILY,
- theResponse.getConnection().getResponseCode());
+ theResponse.getStatusCode());
}
//-------------------------------------------------------------------------
@@ -320,6 +320,6 @@
public void endStatusCode(WebResponse theResponse) throws IOException
{
assertEquals(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
- theResponse.getConnection().getResponseCode());
+ theResponse.getStatusCode());
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]