|
Fabien,
Please try to look at the samples that are provided
with the Cactus distribution. It will help as it does exactly what you're trying
to achieve. You can also have a look at the documentation on the web
site.
The short answer to your question: in your
testXXX() method you have access to implicit object that you can pass to your
method under test. These objects are or type HttpServletRequest,
HttpServletResponse, ServletConfig, ...
Also in your example, you're using a 'req' variable
that is not defined. So your example surely won't compile. Use the implicit
"request" and "response" variables instead.
Hope it helps.
Thanks
Vincent
|
Title: RE: Cactus Samples
- Cactus Samples Fabien Lesire
- Re: Cactus Samples Jari Worsley
- Re: Cactus Samples Vincent Massol
- RE: Cactus Samples Fabien Lesire
- Vincent Massol
