> it is quite straight to test java classes with JUnit by writing
> input data to methods and asserting output. but how can i generate
> input data to JSP and then check validation of output from web server?
Well, most importantly, make the JSPs contains as few logic as possible. Put
as much of the logic as possible into POJOs and/or taglibs, and test those
the usual way.
If you really need to test the JSPs, you can use jWebUnit with ServletUnit
as the test container (the latter comes with httpUnit), or Jetty as an
embedded webserver.
I'd only decide to use cactus if I really needed to test inside the
production server; cactus is powerfull, but also the most complex and
slowest solution.
Hope this helps, Ilja
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/junit/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
