What you want to do is override the createFlowExecutionFactory() method defined by the AbstractFlowExecutionTests and setup a FlowExecutionFactory that registers some listeners when the FlowExecution is created. Like so:
Code:
public class SearchFlowExecutionTests extends AbstractXmlFlowExecutionTests {
protected FlowExecutionFactory createFlowExecutionFactory() {
FlowExecutionImplFactory factory = new FlowExecutionImplFactory();
FlowExecutionListener testListener = new FlowExecutionListenerAdapter() {
public void sessionEnded(RequestContext context, FlowSession session, AttributeMap output) {
// verify output here
System.out.println(output);
}
};
factory.setExecutionListenerLoader(new StaticFlowExecutionListenerLoader(testListener));
return factory;
}
...
Erwin