You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by vm...@apache.org on 2003/02/21 08:33:49 UTC
cvs commit: jakarta-cactus/samples/servlet/src/test-cactus/j2ee13/org/apache/cactus/sample/unit TestHttpRequestSpecific.java
vmassol 2003/02/20 23:33:49
Modified: samples/servlet/src/test-cactus/j2ee13/org/apache/cactus/sample/unit
TestHttpRequestSpecific.java
Log:
Added test to verify that the wrapped HTTP request is a simple pass through when no simulation URL is defined.
Revision Changes Path
1.2 +15 -1 jakarta-cactus/samples/servlet/src/test-cactus/j2ee13/org/apache/cactus/sample/unit/TestHttpRequestSpecific.java
Index: TestHttpRequestSpecific.java
===================================================================
RCS file: /home/cvs/jakarta-cactus/samples/servlet/src/test-cactus/j2ee13/org/apache/cactus/sample/unit/TestHttpRequestSpecific.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- TestHttpRequestSpecific.java 8 Feb 2003 11:17:09 -0000 1.1
+++ TestHttpRequestSpecific.java 21 Feb 2003 07:33:49 -0000 1.2
@@ -104,4 +104,18 @@
assertEquals("value 2", values[1]);
}
+ //-------------------------------------------------------------------------
+
+ /**
+ * Verifies that the wrapped HTTP request is a simple pass through when no
+ * simulation URL is defined.
+ */
+ public void testRequestURL()
+ {
+ StringBuffer realURL = request.getOriginalRequest().getRequestURL();
+ StringBuffer wrappedURL = request.getRequestURL();
+
+ assertEquals(realURL.toString(), wrappedURL.toString());
+ }
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org