use of com.hazelcast.jet.core.TestProcessors.MockPMS in project hazelcast-jet by hazelcast.
the class ExecutionLifecycleTest method when_processorCloseThrows_then_jobSucceeds.
@Test
public void when_processorCloseThrows_then_jobSucceeds() {
// Given
DAG dag = new DAG();
RuntimeException e = new RuntimeException("mock error");
dag.newVertex("faulty", new MockPMS(() -> new MockPS(() -> new MockP().setCloseError(e), NODE_COUNT)));
// When
Job job = instance.newJob(dag);
job.join();
// Then
assertPClosedWithoutError();
assertPsClosedWithoutError();
assertPmsClosedWithoutError();
assertJobSucceeded(job);
}
Aggregations