Search in sources :

Example 1 with AggStartProject

use of io.spine.test.aggregate.command.AggStartProject in project core-java by SpineEventEngine.

the class AggregateMessageDeliveryTestEnv method cannotStartProject.

public static Rejection cannotStartProject() {
    final ProjectId projectId = projectId();
    final AggStartProject cmdMessage = AggStartProject.newBuilder().setProjectId(projectId).build();
    final Command command = createCommand(cmdMessage);
    final Rejection result = Rejections.toRejection(new io.spine.test.aggregate.rejection.AggCannotStartArchivedProject(projectId, Lists.<ProjectId>newArrayList()), command);
    return result;
}
Also used : Rejection(io.spine.core.Rejection) Command(io.spine.core.Command) ProjectId(io.spine.test.aggregate.ProjectId) AggStartProject(io.spine.test.aggregate.command.AggStartProject)

Aggregations

Command (io.spine.core.Command)1 Rejection (io.spine.core.Rejection)1 ProjectId (io.spine.test.aggregate.ProjectId)1 AggStartProject (io.spine.test.aggregate.command.AggStartProject)1