On Mar 22, 2006, at 11:45 AM, Craig McClanahan wrote:
The Shale test framework classes include mock implementations of
essentially
all APIs in the servlet spec (as well as JSF, but that's not really
relevant
here). As such, it can be used as a source of things like
MockServletContext, MockHttpServletRequest, and so on. It *should* be
possible to use this jar file for Tiles tests, even if you don't have
jsf-api.jar in the classpath, as long as you don't try to use
things like
MockFacesContext. The end result is we should be able to construct
JUnit
based tests for nearly everything in standalone Tiles, without the
complexity of Cactus tests. (For in container testing, I prefer to
set up a
"real" app and then exercise it with things like HtmlUnit.)
The only place it might fall down a little for you is in testing
custom tags
... there's no current implementatino of things like MockPageContext.
That's a solvable problem, though, by just writing a few more classes.
Ok, thanks for the clarification. I'm cool with that.
Greg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]