The reason I worry about saving the action variable in an instance variable
is that 
the value should be null before performForward is called. 
Since the user of StrutsTestCase class will write his own setup up,  old
actionForward values could will be left.

Also I do not think the setActionPath is a good Idea.  I think it should be
set in the 
beginXXXXTest method as part of the theRequest.setURL() call.

That is Part of why I had a ActionServletWrapper.

This allowed the general outline of a test to be.

beginXXXXTest ()
{
//setURL  (including path)
//setParamaters
//setCookies
// all client side stuff here

}


testXXXXTest ()
{

//Set preconditions for the test (ie logged in,  on page 5)
actionForward=performAction();

// assert postconditions.

}


I am not sure removing the wrapper.









--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to