I Want to test a PageController servlet with only one method doFLow.
I make the following :
public void beginDoFlow(ServletTestRequest request){
request.addParameter("NEXT","order/ord.jsp");
}
public void testDoFlow(){
try{
IsabelPageControllerTest servlet = new IsabelPageControllerTest();
String url = servlet.doFlow(req, resp);
assertEquals(url,"/en/order/ord.jsp") ;
}
catch(Throwable e){
e.toString();
}
}
but my method doFlow doesn't accept ServletTestRequest, i need to pass an HttpServletRequest.
Any Solution ?
Fabien
-----Original Message-----
From: Jari Worsley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 1:58 PM
To: [EMAIL PROTECTED]
Subject: Re: Cactus Samples
Fabien Lesire wrote:
>
> Hello,
>
> Where can i find more samples and examples for Cactus ?
>
> Thanks,
>
> Fabien
at the moment there is only the sample application. getting that running
with junit/cactus/ant etc is a start.
if you want more on unit testing then try it's "spiritual home" at
junit.org :), there is a lot of good stuff there.
What is it you're trying to do?
Jari
--
Jari Worsley
Senior Programmer
Hyperlink Interactive Ltd
