use of org.n52.iceland.statistics.impl.handlers.exceptions.CodedExceptionEventHandler in project arctic-sea by 52North.
the class EventHandlerFinderTest method findSubclassAsHandler.
@Test
public void findSubclassAsHandler() {
Map<String, StatisticsServiceEventHandler<?>> handlers = new HashMap<>();
CodedExceptionEventHandler handler = new CodedExceptionEventHandler();
OperationNotSupportedException exception = new OperationNotSupportedException("GetCapabilities");
handlers.put("CodedException", handler);
Assert.assertNotNull(EventHandlerFinder.findHandler(exception, handlers));
}
Aggregations