Added the ability to apply multiple listeners to a test case (SWF-334)

This commit is contained in:
Ben Hale
2007-06-12 20:34:57 +00:00
parent 1dd1fcdc9c
commit 33795c1fe1
2 changed files with 14 additions and 0 deletions

View File

@@ -50,6 +50,9 @@ Package org.springframework.webflow.executor
Package org.springframework.webflow.support
* Added native support for Hibernate's session-per-conversation pattern (SWF-92).
Package org.springframework.webflow.test
* Added the ability to apply multiple listeners to a test case (SWF-334).
Changes in version 1.0.3 (24.04.2007)
-------------------------------------

View File

@@ -112,6 +112,17 @@ public abstract class AbstractExternalizedFlowExecutionTests extends AbstractFlo
getFlowExecutionImplFactory().setExecutionListenerLoader(
new StaticFlowExecutionListenerLoader(executionListener));
}
/**
* Set the listeners to be attached to the flow execution the next time one
* is {@link #startFlow() started} by this test. Useful for attaching
* listeners that do test assertions during the execution of the flow.
* @param executionListeners the listeners to attach
*/
protected void setFlowExecutionListeners(FlowExecutionListener[] executionListeners) {
getFlowExecutionImplFactory().setExecutionListenerLoader(
new StaticFlowExecutionListenerLoader(executionListeners));
}
protected final FlowDefinition getFlowDefinition() {
if (isCacheFlowDefinition() && cachedFlowDefinition != null) {