use of io.spine.server.command.given.CommandHandlerMethodTestEnv.ValidHandlerOneParam in project core-java by SpineEventEngine.
the class CommandHandlerMethodShould method consider_handler_with_one_msg_param_valid.
@Test
public void consider_handler_with_one_msg_param_valid() {
final Method handler = new ValidHandlerOneParam().getHandler();
assertIsCommandHandler(handler, true);
}
use of io.spine.server.command.given.CommandHandlerMethodTestEnv.ValidHandlerOneParam in project core-java by SpineEventEngine.
the class CommandHandlerMethodShould method throw_ISE_for_not_handled_command_type.
@Test(expected = IllegalStateException.class)
public void throw_ISE_for_not_handled_command_type() {
final CommandHandler handler = new ValidHandlerOneParam();
final CommandEnvelope cmd = requestFactory.createEnvelope(startProject());
handler.dispatch(cmd);
}
Aggregations