use of alma.acs.nc.sm.generated.EventSubscriberActionDispatcher in project ACS by ACS-Community.
the class EventSubscriberSmEngineTest method setUp.
@Before
public void setUp() throws Exception {
super.setUp();
configureLogging(AcsLogLevelDefinition.INFO);
StopWatch sw = new StopWatch();
// we use empty handlers, except for environmentActionHandler
actionHandler = new MyActionHandler();
engine = new EventSubscriberStateMachine(logger, new EventSubscriberActionDispatcher(actionHandler, logger));
// usually it's quite a bit faster, but for some reason the NRI test on te48 takes ~1.2 seconds
assertThat("SM creation should take less than a 1.4 second.", sw.getLapTimeMillis(), lessThan(1400L));
}
Aggregations