public interface HandlerProvider
HandlerProvider class provide method to assert on event handled.| Modifier and Type | Method and Description |
|---|---|
void |
eventWasHandledBy(org.seedstack.business.api.Event event,
Class<? extends org.seedstack.business.api.EventHandler> handler)
Checks if the given event was received by the handler when the specified method is called.
|
void |
eventWasHandledBy(Map<Class<? extends org.seedstack.business.api.EventHandler>,org.seedstack.business.api.Event> handlerMap)
Checks if the given event was received by the handler when the specified method is called.
|
void eventWasHandledBy(org.seedstack.business.api.Event event,
Class<? extends org.seedstack.business.api.EventHandler> handler)
event - event which should be receivedhandler - handler which should be calledorg.seedstack.seed.core.api.SeedException - if the expectation is not respectedvoid eventWasHandledBy(Map<Class<? extends org.seedstack.business.api.EventHandler>,org.seedstack.business.api.Event> handlerMap)
handlerMap - map of handler which should be called with the associate eventorg.seedstack.seed.core.api.SeedException - if the expectation is not respectedCopyright © 2013-2015–2015. All rights reserved.