public class MockFlowBuilderContext extends FlowBuilderContextImpl
Allows programmatic registration of subflows needed by a flow execution being tested, see
registerSubflow(Flow). Subflows registered are typically stubs that verify parent flow input and output
scenarios.
Also supports programmatic registration of additional custom services needed by a flow (such as Actions) managed in a
backing Spring ConfigurableBeanFactory. See the registerBean(String, Object) method. Beans
registered are typically mocks or stubs of business services invoked by the flow.
| Constructor and Description |
|---|
MockFlowBuilderContext(java.lang.String flowId)
Creates a new mock flow service locator.
|
MockFlowBuilderContext(java.lang.String flowId,
AttributeMap<java.lang.Object> attributes)
Creates a new mock flow service locator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
registerBean(java.lang.String beanName,
java.lang.Object bean)
Register a bean in the backing bean factory, typically to support a flow execution test.
|
void |
registerSubflow(Flow subflow)
Register a subflow definition in the backing flow registry, typically to support a flow execution test.
|
createConversionService, getApplicationContext, getConversionService, getExpressionParser, getFlowArtifactFactory, getFlowAttributes, getFlowBuilderServices, getFlowDefinitionLocator, getFlowId, getValidationHintResolver, getValidator, getViewFactoryCreatorpublic MockFlowBuilderContext(java.lang.String flowId)
public MockFlowBuilderContext(java.lang.String flowId,
AttributeMap<java.lang.Object> attributes)
public void registerSubflow(Flow subflow)
subflow - the subflowpublic void registerBean(java.lang.String beanName,
java.lang.Object bean)
beanName - the bean namebean - the singleton instance