7677787980818283848586
graph.prepare(); source.receiveFirst( null ); graph.cleanup(); assertPrepareCleanup( lhsStage1 ); assertPrepareCleanup( rhsStage1 ); assertEquals( values.size(), lhsStage1.getReceiveCount() );
121122123124125126127128129130131
graph.prepare(); source.receiveFirst( null ); graph.cleanup(); assertPrepareCleanup( stage ); assertEquals( values.size(), stage.getReceiveCount() ); assertEquals( values.size(), sink.getResults().size() );
161162163164165166167168169170171
graph.prepare(); source.receiveFirst( null ); graph.cleanup(); assertPrepareCleanup( stage1 ); assertEquals( values.size(), stage1.getReceiveCount() ); assertEquals( 1, stage1.getStartCount() );
212213214215216217218219220221222
graph.prepare(); source1.receiveFirst( null ); source2.receiveFirst( null ); graph.cleanup(); assertPrepareCleanup( stage1 ); assertEquals( values.size() * 2, stage1.getReceiveCount() ); assertEquals( 1, stage1.getStartCount() );