Search in sources :

Example 1 with DefaultServiceEventHandler

use of org.n52.iceland.statistics.impl.handlers.DefaultServiceEventHandler in project arctic-sea by 52North.

the class EventHandlerFinderTest method findNoHandlers.

@Test(expected = NullPointerException.class)
public void findNoHandlers() {
    Map<String, StatisticsServiceEventHandler<?>> handlers = new HashMap<>();
    DefaultServiceEventHandler handler = new DefaultServiceEventHandler();
    handlers.put("morpheus", handler);
    GetCapabilitiesRequest request = new GetCapabilitiesRequest("SOS");
    EventHandlerFinder.findHandler(request, handlers);
}
Also used : GetCapabilitiesRequest(org.n52.shetland.ogc.ows.service.GetCapabilitiesRequest) HashMap(java.util.HashMap) StatisticsServiceEventHandler(org.n52.iceland.statistics.api.interfaces.StatisticsServiceEventHandler) DefaultServiceEventHandler(org.n52.iceland.statistics.impl.handlers.DefaultServiceEventHandler) Test(org.junit.Test)

Aggregations

HashMap (java.util.HashMap)1 Test (org.junit.Test)1 StatisticsServiceEventHandler (org.n52.iceland.statistics.api.interfaces.StatisticsServiceEventHandler)1 DefaultServiceEventHandler (org.n52.iceland.statistics.impl.handlers.DefaultServiceEventHandler)1 GetCapabilitiesRequest (org.n52.shetland.ogc.ows.service.GetCapabilitiesRequest)1