doListenerTests(endpointName, 1, true);
}
public void doTestStopped(String flowName, String endpointName) throws Exception
{
AbstractFlowConstruct f = (AbstractFlowConstruct) muleContext.getRegistry().lookupFlowConstruct(
flowName);
assertEquals("stopped", f.getInitialState());
// Flow initially stopped
assertFalse(f.isStarted());
assertTrue(f.isStopped());
// The connector should be started, but with no listeners registered.
doListenerTests(endpointName, 0, true);
f.start();
assertTrue(f.isStarted());
assertFalse(f.isStopped());
// The listeners should now be registered and started.
doListenerTests(endpointName, 1, true);
}