|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.springframework.webflow.test.execution.AbstractFlowExecutionTests
org.springframework.webflow.test.execution.AbstractExternalizedFlowExecutionTests
org.springframework.webflow.test.execution.AbstractXmlFlowExecutionTests
public abstract class AbstractXmlFlowExecutionTests
Base class for flow integration tests that verify an XML flow definition executes as expected.
Example usage:
public class SearchFlowExecutionTests extends AbstractXmlFlowExecutionTests { protected FlowDefinitionResource getResource(FlowDefinitionResourceFactory resourceFactory) { return resourceFactory.createClassPathResource("search-flow.xml", getClass()); } public void testStartFlow() { ExternalContext context = new MockExternalContext(); startFlow(context); assertCurrentStateEquals("enterSearchCriteria"); } protected void configureFlowBuilderContext(MockFlowBuilderContext builderContext) { builderContext.registerBean("searchService", new TestSearchService()); } }
Constructor Summary | |
---|---|
AbstractXmlFlowExecutionTests()
Constructs a default XML flow execution test. |
|
AbstractXmlFlowExecutionTests(String name)
Constructs an XML flow execution test with given name. |
Method Summary |
---|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, getName, run, run, runBare, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
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, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractXmlFlowExecutionTests()
TestCase.setName(String)
public AbstractXmlFlowExecutionTests(String name)
name
- the name of the test
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |