I am writing a class that extends AbstractXmlFlowExecutionTests to test this view-state:
I want the JUnit test to ensure that the list of required fields in the binder does not change. Is it possible to access the binder to check required properties? I can call getFlow().getState("signup"), but there doesn't appear to be any object here that contains that binder. Is there a different strategy for testing required values in Spring Web Flow?Code:<view-state id="signup" model="signupForm"> <!-- set required fields and white-list --> <binder> <binding property="firstName" required="true"/> <binding property="lastName"/> </binder> <transition on="submit" to="finished"/> <transition on="cancel" to="end" bind="false" validate="false"/> </view-state>
Thanks,
st


Reply With Quote
