diff --git a/spring-webflow-reference/src/testing.xml b/spring-webflow-reference/src/testing.xml index 3fcdf44f..a62f8cf1 100644 --- a/spring-webflow-reference/src/testing.xml +++ b/spring-webflow-reference/src/testing.xml @@ -42,6 +42,18 @@ protected void configureFlowBuilderContext(MockFlowBuilderContext builderContext builderContext.registerBean("bookingService", new StubBookingService()); }]]> + + If your flow extends from another flow, or has states that extend other states, + also override getModelResources(FlowDefinitionResourceFactory) to return the path to the parent flows. + + + Testing flow startup @@ -127,6 +139,7 @@ public Flow createMockBookingSubflow() { }); // immediately return the bookingConfirmed outcome so the caller can respond new EndState(mockBookingFlow, "bookingConfirmed"); + return mockBookingFlow; }]]>