From d277e83509d718eea04e5b82346a24fadbc6dce2 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Fri, 6 Jun 2008 05:20:37 +0000 Subject: [PATCH] doco --- spring-webflow-reference/src/testing.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; }]]>