Hi All,
I am using a Wizard ActionBean that I am testing nicely with MockRoundTrip
simply by adding in:
trip.setParameter("__fp", "Harry Potter"); // hidden wizard field :-)
to my trip parameters, based on some instructions I found here:
http://www.stripesframework.org/jira/browse/STS-519
Sweet. Works in most cases for me.
The issue I have is that the ActionBean validation doesn't fire as part of the
trip.execute(). The reason I care is that I have tests to check required
fields. I am guessing validation isn't firing because "Harry Potter" is not an
encrypted representation of the fields names I am submitting for validation.
The
wizard must use this field containing encrypted field names to work out what
fields need to be validated before going to the next page.
In the instructions, Brandon suggests using
CryptoUtil.encrypt("field1|field2|field3"); as the value for the "__fp"
parameter. This doesn't work as far as I can tell. Does anyone out there have
any ideas about what I could be doing wrong?
Cheers
Damien
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users