org.springframework.webflow.test.execution
Class AbstractXmlFlowExecutionTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.webflow.test.execution.AbstractFlowExecutionTests
              extended by org.springframework.webflow.test.execution.AbstractExternalizedFlowExecutionTests
                  extended by org.springframework.webflow.test.execution.AbstractXmlFlowExecutionTests
All Implemented Interfaces:
junit.framework.Test

public abstract class AbstractXmlFlowExecutionTests
extends AbstractExternalizedFlowExecutionTests

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());
        }
 
 }
 

Author:
Keith Donald, Erwin Vervaet, Scott Andrews

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

AbstractXmlFlowExecutionTests

public AbstractXmlFlowExecutionTests()
Constructs a default XML flow execution test.

See Also:
TestCase.setName(String)

AbstractXmlFlowExecutionTests

public AbstractXmlFlowExecutionTests(String name)
Constructs an XML flow execution test with given name.

Parameters:
name - the name of the test