use of io.spine.core.Subscribe in project core-java by SpineEventEngine.
the class InvalidProjectNameSubscriber method on.
@Subscribe
public void on(InvalidProjectName rejection, RjUpdateProjectName commandMessage, CommandContext context) {
final CommandFactory commandFactory = TestActorRequestFactory.newInstance(InvalidProjectNameSubscriber.class).command();
final Command command = commandFactory.createWithContext(commandMessage, context);
this.rejectionHandled = Rejections.createRejection(rejection, command);
}
Aggregations