Search in sources :

Example 1 with Subscribe

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);
}
Also used : Command(io.spine.core.Command) CommandFactory(io.spine.client.CommandFactory) Subscribe(io.spine.core.Subscribe)

Aggregations

CommandFactory (io.spine.client.CommandFactory)1 Command (io.spine.core.Command)1 Subscribe (io.spine.core.Subscribe)1