vmassol 2002/09/26 06:18:23
Modified: sample-servlet/src/unit/share/org/apache/cactus/unit
TestServletTestCase2.java
Log:
new test to verify a jsessionid cookie is returned when a new http session is created
Revision Changes Path
1.11 +23 -1
jakarta-cactus/sample-servlet/src/unit/share/org/apache/cactus/unit/TestServletTestCase2.java
Index: TestServletTestCase2.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/sample-servlet/src/unit/share/org/apache/cactus/unit/TestServletTestCase2.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- TestServletTestCase2.java 3 Sep 2002 19:32:24 -0000 1.10
+++ TestServletTestCase2.java 26 Sep 2002 13:18:23 -0000 1.11
@@ -869,4 +869,26 @@
theResponse.getConnection().getContentType());
}
+ //-------------------------------------------------------------------------
+
+ /**
+ * Verify that we can get hold of the jsessionid cookie returned by the
+ * server.
+ */
+ public void testVerifyJsessionid()
+ {
+ // By default, Cactus will create an HTTP session.
+ }
+
+ /**
+ * Verify that we can get hold of the jsessionid cookie returned by the
+ * server.
+ *
+ * @param theResponse the response from the server side.
+ */
+ public void endVerifyJsessionid(WebResponse theResponse)
+ {
+ assertNotNull(theResponse.getCookieIgnoreCase("jsessionid"));
+ }
+
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>