use of io.spine.server.command.given.CommandHandlerMethodTestEnv.RejectingHandler in project core-java by SpineEventEngine.
the class CommandHandlerMethodShould method set_producer_ID_if_command_handler.
@Test
public void set_producer_ID_if_command_handler() {
final CommandHandler handler = new RejectingHandler();
final CommandEnvelope envelope = requestFactory.createEnvelope(createProject());
try {
handler.dispatch(envelope);
} catch (HandlerMethodFailedException e) {
assertCauseAndId(e, handler.getId());
}
}
Aggregations