@Test(expected = NullPointerException.class) public void createWithoutStage() { factory.create(null, null); }
@Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.FlatMap stage) { Function<I, Graph> mapper = Casts.cast(stage.getMapper()); return new FlatMapStage<>(engine, mapper); }
FlatMapStageFactory implements ProcessingStageFactory<Stage.FlatMap> { @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.FlatMap stage) { Function<I, Graph> mapper = Casts.cast(stage.getMapper()); return new FlatMapStage<>(engine, mapper); } }
FlatMapStageFactory implements ProcessingStageFactory<Stage.FlatMap> { @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.FlatMap stage) { Function<I, Graph> mapper = Casts.cast(stage.getMapper()); return new FlatMapStage<>(engine, mapper); }  }
FlatMapStageFactory implements ProcessingStageFactory<Stage.FlatMap> { @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.FlatMap stage) { Function<I, Graph> mapper = Casts.cast(stage.getMapper()); return new FlatMapStage<>(engine, mapper); }  @Override ProcessingStage<I, O> create(Engine engine, Stage.FlatMap stage); }
FlatMapStageFactory implements ProcessingStageFactory<Stage.FlatMap> { @Override public <I, O> ProcessingStage<I, O> create(Engine engine, Stage.FlatMap stage) { Function<I, Graph> mapper = Casts.cast(stage.getMapper()); return new FlatMapStage<>(engine, mapper); }  @Override ProcessingStage<I, O> create(Engine engine, Stage.FlatMap stage);  }