assertThat(service.getRunningFlows().size(), is(1));
}
@Test
public void testRegisterWorkflowTriggerWithSubclass_shouldRegisterTrigger() throws Exception {
NullEvent3 testEvent = new NullEvent3();
testEvent.setName("triggerEvent");
testEvent.setTestProperty("foo");
testEvent.setTestStringProp("bar");
testEvent.setTestBoolProp(true);
testEvent.setTestIntProp(42);
service.registerFlowTriggerEvent(testEvent, "ci");
service.processEvent(new Event());
service.processEvent(testEvent);
assertThat(service.getRunningFlows().size(), is(1));
}