Class CustomAbstractXmlFlowExecutionTests
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.springframework.webflow.test.execution.AbstractFlowExecutionTests
-
- org.springframework.webflow.test.execution.AbstractExternalizedFlowExecutionTests
-
- net.shibboleth.idp.plugin.authn.spring.CustomAbstractXmlFlowExecutionTests
-
- All Implemented Interfaces:
junit.framework.Test
- Direct Known Subclasses:
AbstractAuthnXmlFlowExecutionTests
public abstract class CustomAbstractXmlFlowExecutionTests extends AbstractExternalizedFlowExecutionTests
Copy of theAbstractXmlFlowExecutionTestsclass, but using a customCustomFlowModelFlowBuilderto set the property placeholder prefix of%{.
-
-
Field Summary
Fields Modifier and Type Field Description private FlowModelRegistryflowModelRegistry
-
Constructor Summary
Constructors Constructor Description CustomAbstractXmlFlowExecutionTests()Constructs a default XML flow execution test.CustomAbstractXmlFlowExecutionTests(String name)Constructs an XML flow execution test with given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FlowBuildercreateFlowBuilder(FlowDefinitionResource resource)protected FlowDefinitionResource[]getModelResources(FlowDefinitionResourceFactory resourceFactory)Template method subclasses may override to return pointers to "flow model resources" needed to build the definition of the flow being tested.private voidregisterDependentFlowModels()protected voidregisterMockFlowBeans(ConfigurableBeanFactory flowBeanFactory)Template method subclasses may override to register mock implementations of services used locally by the flow being tested.-
Methods inherited from class org.springframework.webflow.test.execution.AbstractExternalizedFlowExecutionTests
buildFlow, configureFlowBuilderContext, createResourceLoader, getFlow, getFlowDefinition, getFlowDefinitionRegistry, getResource, getResourceFactory, isCacheFlowDefinition, setCacheFlowDefinition, setFlowExecutionAttributes, setFlowExecutionListener, setFlowExecutionListeners
-
Methods inherited from class org.springframework.webflow.test.execution.AbstractFlowExecutionTests
assertActiveFlowEquals, assertCurrentStateEquals, assertFlowExecutionActive, assertFlowExecutionEnded, assertFlowExecutionOutcomeEquals, assertResponseWrittenEquals, createFlowExecutionFactory, getConversationAttribute, getConversationScope, getFlowAttribute, getFlowExecution, getFlowExecutionFactory, getFlowExecutionOutcome, getFlowScope, getRequiredConversationAttribute, getRequiredConversationAttribute, getRequiredFlowAttribute, getRequiredFlowAttribute, getRequiredViewAttribute, getRequiredViewAttribute, getViewAttribute, getViewScope, resumeFlow, setCurrentState, startFlow, startFlow, updateFlowExecution
-
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
-
-
-
-
Field Detail
-
flowModelRegistry
private FlowModelRegistry flowModelRegistry
-
-
Constructor Detail
-
CustomAbstractXmlFlowExecutionTests
public CustomAbstractXmlFlowExecutionTests()
Constructs a default XML flow execution test.- See Also:
TestCase.setName(String)
-
CustomAbstractXmlFlowExecutionTests
public CustomAbstractXmlFlowExecutionTests(String name)
Constructs an XML flow execution test with given name.- Parameters:
name- the name of the test
-
-
Method Detail
-
createFlowBuilder
protected final FlowBuilder createFlowBuilder(FlowDefinitionResource resource)
- Specified by:
createFlowBuilderin classAbstractExternalizedFlowExecutionTests
-
getModelResources
protected FlowDefinitionResource[] getModelResources(FlowDefinitionResourceFactory resourceFactory)
Template method subclasses may override to return pointers to "flow model resources" needed to build the definition of the flow being tested. Typically overridden when the flow being tested extends from another flow. Default returns null, assuming no inheritance.- Parameters:
resourceFactory- the resource factory- Returns:
- the flow definition model resources
-
registerMockFlowBeans
protected void registerMockFlowBeans(ConfigurableBeanFactory flowBeanFactory)
Template method subclasses may override to register mock implementations of services used locally by the flow being tested. By default, this method does nothing.- Parameters:
flowBeanFactory- the local flow bean factory, you may register mock services with it usingSingletonBeanRegistry.registerSingleton(String, Object)
-
registerDependentFlowModels
private void registerDependentFlowModels()
-
-