Search in sources :

Example 1 with TestProcessManager

use of io.spine.server.procman.given.PmTransactionTestEnv.TestProcessManager in project core-java by SpineEventEngine.

the class PmTransactionShould method checkEventReceived.

@Override
protected void checkEventReceived(ProcessManager<ProjectId, Project, PatchedProjectBuilder> entity, Event event) {
    final TestProcessManager aggregate = (TestProcessManager) entity;
    final Message actualMessage = unpack(event.getMessage());
    assertTrue(aggregate.getReceivedEvents().contains(actualMessage));
}
Also used : Message(com.google.protobuf.Message) TestProcessManager(io.spine.server.procman.given.PmTransactionTestEnv.TestProcessManager)

Aggregations

Message (com.google.protobuf.Message)1 TestProcessManager (io.spine.server.procman.given.PmTransactionTestEnv.TestProcessManager)1