use of com.hazelcast.jet.core.processor.Processors.noopP in project hazelcast by hazelcast.
the class ExecutionLifecycleTest method when_job_withNoSnapshots_completed_then_noSnapshotMapsLeft.
@Test
public void when_job_withNoSnapshots_completed_then_noSnapshotMapsLeft() {
HazelcastInstance instance = createHazelcastInstance();
DAG dag = new DAG();
dag.newVertex("noop", Processors.noopP());
newJob(instance, dag, null).join();
Collection<DistributedObject> objects = instance.getDistributedObjects();
long snapshotMaps = objects.stream().filter(obj -> obj instanceof IMap).filter(obj -> obj.getName().contains("snapshots.data")).count();
assertEquals(0, snapshotMaps);
}
Aggregations