Christopher Maier wrote:
> 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
>   

Hi Christoph,

good question; I just ran into the same issue. I also get no exception,
just "_default_source_page_" is returned as destination.
Maybe you want to vote for STS-519 :-)

Greetings
Marcus

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to