use of io.spine.test.procman.command.PmThrowEntityAlreadyArchived in project core-java by SpineEventEngine.
the class ProcessManagerRepositoryShould method post_command_rejections.
@Test
public void post_command_rejections() {
final ProjectId id = ProjectId.newBuilder().setId(newUuid()).build();
final PmThrowEntityAlreadyArchived commandMsg = PmThrowEntityAlreadyArchived.newBuilder().setProjectId(id).build();
final Command command = requestFactory.createCommand(commandMsg);
repository().dispatchCommand(CommandEnvelope.of(command));
final StandardRejections.EntityAlreadyArchived expected = StandardRejections.EntityAlreadyArchived.newBuilder().setEntityId(AnyPacker.pack(id)).build();
assertTrue(TestProcessManager.processed(expected));
}
Aggregations