use of org.n52.iceland.statistics.impl.handlers.CountingOutputStreamEventHandler in project arctic-sea by 52North.
the class EventHandlerFinderTest method findDirectDefaultServiceEvent.
@Test
public void findDirectDefaultServiceEvent() {
Map<String, StatisticsServiceEventHandler<?>> handlers = new HashMap<>();
CountingOutputStreamEventHandler handler = new CountingOutputStreamEventHandler();
CountingOutputStreamEvent request = new CountingOutputStreamEvent();
handlers.put(request.getClass().getSimpleName(), handler);
Assert.assertNotNull(EventHandlerFinder.findHandler(request, handlers));
}
Aggregations