Search in sources :

Example 1 with EventSubscriberActionDispatcher

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));
}
Also used : EventSubscriberActionDispatcher(alma.acs.nc.sm.generated.EventSubscriberActionDispatcher) StopWatch(alma.acs.util.StopWatch) Before(org.junit.Before)

Aggregations

EventSubscriberActionDispatcher (alma.acs.nc.sm.generated.EventSubscriberActionDispatcher)1 StopWatch (alma.acs.util.StopWatch)1 Before (org.junit.Before)1