[
https://jira.jboss.org/jira/browse/GTNWCI-3?page=com.atlassian.jira.plugi...
]
Matt Wringe reassigned GTNWCI-3:
--------------------------------
Assignee: Matt Wringe
Unit test to ensure that sessions is maintained accross request
dispatching
---------------------------------------------------------------------------
Key: GTNWCI-3
URL:
https://jira.jboss.org/jira/browse/GTNWCI-3
Project: GateIn Web Container Integration
Issue Type: Task
Reporter: Julien Viet
Assignee: Matt Wringe
unit test would do:
Request 1:
- request dispatch to a context named /other and setup an object in the session
- make a request for step 2 of the unit test
Request 2:
- create URL for step 4 of the test that points to the test servlet
- request dispatch to the /other context and assert that the object is present in the
session
- during request dispatch create URL for step 3 of the test that points to servlet
directly
- make request to the servlet directly with the URL created previously
Request 3:
- this request go on the servlet mapped in /context directly
- check that session is maintained and setup a boolean that will be used for assertion in
step 4
- make a request for step 4 of the test with the URL that was created and saved (in a
static field) during step 2
Request 4:
- assert boolean that was set during the step 3 of the test
- done
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira