Announcement Announcement Module
Collapse
No announcement yet.
Extend AbstractXmlFlowExecutionTests and test required form fields? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Extend AbstractXmlFlowExecutionTests and test required form fields?

    I am writing a class that extends AbstractXmlFlowExecutionTests to test this view-state:

    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>
    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?

    Thanks,
    st
Working...
X