use of io.spine.server.command.TestEventFactory in project core-java by SpineEventEngine.
the class ProcessManagerDispatcherShould method pass_null_tolerance_check.
@Test
public void pass_null_tolerance_check() {
TestActorRequestFactory requestFactory = TestActorRequestFactory.newInstance(getClass());
TestEventFactory eventFactory = TestEventFactory.newInstance(getClass());
final Command command = requestFactory.generateCommand();
new NullPointerTester().setDefault(CommandEnvelope.class, CommandEnvelope.of(command)).setDefault(EventEnvelope.class, EventEnvelope.of(eventFactory.createEvent(newUuidValue()))).setDefault(RejectionEnvelope.class, RejectionEnvelope.of(createRejection(newUuidValue(), command))).setDefault(ProcessManager.class, mock(ProcessManager.class)).testAllPublicStaticMethods(ProcessManagerDispatcher.class);
}
Aggregations