@Test(expected = NullPointerException.class) public void createWithoutStage() { factory.create(null, null); }
@SuppressWarnings("unchecked") @Override public <I, O> TerminalStage<I, O> create(Engine engine, Stage.FindFirst stage) { Objects.requireNonNull(stage); return (TerminalStage<I, O>) INSTANCE; }
FindFirstStageFactory implements TerminalStageFactory<Stage.FindFirst> { @SuppressWarnings("unchecked") @Override public <I, O> TerminalStage<I, O> create(Engine engine, Stage.FindFirst stage) { Objects.requireNonNull(stage); return (TerminalStage<I, O>) INSTANCE; } }
FindFirstStageFactory implements TerminalStageFactory<Stage.FindFirst> { @SuppressWarnings("unchecked") @Override public <I, O> TerminalStage<I, O> create(Engine engine, Stage.FindFirst stage) { Objects.requireNonNull(stage); return (TerminalStage<I, O>) INSTANCE; }  }
FindFirstStageFactory implements TerminalStageFactory<Stage.FindFirst> { @SuppressWarnings("unchecked") @Override public <I, O> TerminalStage<I, O> create(Engine engine, Stage.FindFirst stage) { Objects.requireNonNull(stage); return (TerminalStage<I, O>) INSTANCE; }  @SuppressWarnings("unchecked") @Override TerminalStage<I, O> create(Engine engine, Stage.FindFirst stage); }
FindFirstStageFactory implements TerminalStageFactory<Stage.FindFirst> { @SuppressWarnings("unchecked") @Override public <I, O> TerminalStage<I, O> create(Engine engine, Stage.FindFirst stage) { Objects.requireNonNull(stage); return (TerminalStage<I, O>) INSTANCE; }  @SuppressWarnings("unchecked") @Override TerminalStage<I, O> create(Engine engine, Stage.FindFirst stage);  }