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));
}
Aggregations