Hi Jerome,
In the current version, no. I have a todo task (http://jakarta.apache.org/commons/cactus/todo.html) for offering an API to end user to be able to get the servlet input stream. So far, only one person asked for it (which is why I added it to the todo list) and I have not had the time to implement it, although it should be quite simple to do. If you have some time, please take a stab at it. Otherwise, I'll try to do it asap but I can't guarantee when ... :) (I'm doing this on my free time). If others want to help ... :)
It's actually a very interesting question. Craig gave you the main answer in a follow-up post. Yesterday, I went to the XtC (eXtreme Tuesday Club, in London) - check www.xpdeveloper.com - and had a very interesting discussion on mock objects vs in container testing. The conclusion was that I actually liked some of their ideas and I will find some time to look at how they do it. There are pros and cons of both. Here is my plan : - look at it next weekend and come up with an article that I'll put on the Cactus web site that discusses the pros and cons of each method. I'll also try to come up with an example of how to implement some test case in both strategies.
Thanks Vincent. |
Title: Access to HttpServletRequest.getInputStream() in Cactus
- Access to HttpServletRequest.getInputStream() in Cactu... Jerome Banks
- Re: Access to HttpServletRequest.getInputStream()... Craig R. McClanahan
- Creation of the Cactus user mailing list Vincent Massol
- [REPOST] Creation of the Cactus user mail... Vincent Massol
- Re: [REPOST] Creation of the Cactus u... Peter Donald
- Re: [REPOST] Creation of the Cac... Craig R. McClanahan
- Re: [REPOST] Creation of the... Vincent Massol
- No comments on proposed datamodel package ??? Vincent Massol
- No comments on proposed datamodel package ??? Michael Gerdau
- Re: No comments on proposed datamodel pac... Peter Donald
- Re: No comments on proposed datamodel... Nick Afshartous
- RE: Access to HttpServletRequest.getInputStream()... Jerome Banks
- Re: Access to HttpServletRequest.getInputStre... Vincent Massol
- RE: Access to HttpServletRequest.getInputStream()... Jerome Banks
- Re: Access to HttpServletRequest.getInputStre... Vincent Massol