This commit is contained in:
Keith Donald
2008-03-31 16:16:10 +00:00
parent 3cf6ddfb61
commit ae382dc04e

View File

@@ -100,6 +100,17 @@ public abstract class AbstractFlowExecutionTests extends TestCase {
* execution during the start operation
* @throws FlowExecutionException if an exception was thrown while starting the flow execution
*/
protected void startFlow(ExternalContext context) throws FlowExecutionException {
startFlow(null, context);
}
/**
* Start the flow execution to be tested.
* @param input input to pass the flow
* @param context the external context providing information about the caller's environment, used by the flow
* execution during the start operation
* @throws FlowExecutionException if an exception was thrown while starting the flow execution
*/
protected void startFlow(MutableAttributeMap input, ExternalContext context) throws FlowExecutionException {
flowExecution = getFlowExecutionFactory().createFlowExecution(getFlowDefinition());
flowExecution.start(input, context);