Base class for flow integration tests that verify an externalized flow definition executes as expected. Supports
caching of the flow definition built from an externalized resource to speed up test execution.
author: Keith Donald
createFlowBuilder(Resource resource, FlowServiceLocator serviceLocator) Factory method to create the builder that will build the flow definition whose execution will be tested.
createFlowServiceLocator() Returns the flow service locator to use during flow definition construction time for accessing externally
managed flow artifacts such as actions and flows to be used as subflows.
setCacheFlowDefinition(boolean cacheFlowDefinition) Sets the flag indicating if the flow definition built from an externalized resource as part of this test should
be cached.
Factory method to create the builder that will build the flow definition whose execution will be tested.
Subclasses must implement.
A subclass may return a builder that sets up mock implementations of services needed locally by the flow
definition at runtime.
Parameters: resource - the externalized flow definition resource location Parameters: serviceLocator - the flow service locator the flow builder that will build the flow to be tested
Convenient factory method that creates a
FlowDefinitionResource from a file in a directory. Typically
called by subclasses overriding
AbstractExternalizedFlowExecutionTests.getFlowDefinitionResource() .
Parameters: fileDirectory - the directory containing the file Parameters: fileName - the short file name the flow definition resource pointing to the file
Returns the flow service locator to use during flow definition construction time for accessing externally
managed flow artifacts such as actions and flows to be used as subflows.
Template method called by
AbstractExternalizedFlowExecutionTests.createFlowServiceLocator() to allow registration of mock implementations of
services needed to test the flow execution. Useful when testing flow definitions in execution in isolation from
flows and middle-tier services. Subclasses may override.
Parameters: serviceRegistry - the mock service registry (and locator)
Sets system attributes to be associated with the flow execution the next time one is
AbstractExternalizedFlowExecutionTests.startFlow() started by this test. Useful for assigning attributes that influence flow execution behavior.
Parameters: executionAttributes - the system attributes to assign
Set a single listener to be attached to the flow execution the next time one is
AbstractExternalizedFlowExecutionTests.startFlow() started by
this test. Useful for attaching a listener that does test assertions during the execution of the flow.
Parameters: executionListener - the listener to attach
Set the listeners to be attached to the flow execution the next time one is
AbstractExternalizedFlowExecutionTests.startFlow() started by this
test. Useful for attaching listeners that do test assertions during the execution of the flow.
Parameters: executionListeners - the listeners to attach since: 1.0.4
Methods inherited from org.springframework.webflow.test.execution.AbstractFlowExecutionTests