I'm trying to write some tests of a Wizard form using the Stripes mocks. Right
now I'm just trying to verify that the events I expect to be start events for
the Wizard are indeed the only ones that are set up to be start events. I guess
I could easily do this by just comparing a list of names to whatever is in the
Wizard annotation, but I started out trying to use the MockRoundtrip to
execute for each resolution handler in the ActionBean I'm testing, thinking
that if trip.execute("doFoo") threw an Exception, then I'd know that it wasn't
a start event; no Exception means it's a start event. This is what happens
when I run my application in a web browser, but in the test, all the
resolution handlers can execute without throwing an exception, even the ones
that aren't listed in the startEvents parameter of the Wizard annotation.
Does MockRoundtrip work properly with Wizards, or is there something I'm
missing?
Thanks,
Chris
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users