@Test public void testExecute() { CucumberRunnersOperation includedTestOperation = new CucumberRunnersOperation(); SetResult<TestVertex> result = includedTestOperation.execute(builder.getGraph()); assertNotNull(result); assertEquals(1, result.get().size()); assertTrue(result.get().stream().anyMatch(t -> t.getActor().equals("com.sandboni.core.engine.scenario.CucumberRunner") && t.getAction().equals("runWith") && t.getRunWithOptions().equals("src/test/resources/features/"))); }
@Override public SetResult<TestVertex> execute(Graph<Vertex, Edge> graph) { return new SetResult<>(emptyIfFalse(graph.containsVertex(CUCUMBER_RUNNER_VERTEX), () -> graph.edgesOf(CUCUMBER_RUNNER_VERTEX).stream().map(e -> (TestVertex) e.getTarget()))); }
CucumberRunnersOperation extends AbstractGraphOperation<SetResult<TestVertex>> { @Override public SetResult<TestVertex> execute(Graph<Vertex, Edge> graph) { return new SetResult<>(emptyIfFalse(graph.containsVertex(CUCUMBER_RUNNER_VERTEX), () -> graph.edgesOf(CUCUMBER_RUNNER_VERTEX).stream().map(e -> (TestVertex) e.getTarget()))); } }
CucumberRunnersOperation extends AbstractGraphOperation<SetResult<TestVertex>> { @Override public SetResult<TestVertex> execute(Graph<Vertex, Edge> graph) { return new SetResult<>(emptyIfFalse(graph.containsVertex(CUCUMBER_RUNNER_VERTEX), () -> graph.edgesOf(CUCUMBER_RUNNER_VERTEX).stream().map(e -> (TestVertex) e.getTarget()))); }  }
CucumberRunnersOperation extends AbstractGraphOperation<SetResult<TestVertex>> { @Override public SetResult<TestVertex> execute(Graph<Vertex, Edge> graph) { return new SetResult<>(emptyIfFalse(graph.containsVertex(CUCUMBER_RUNNER_VERTEX), () -> graph.edgesOf(CUCUMBER_RUNNER_VERTEX).stream().map(e -> (TestVertex) e.getTarget()))); }  @Override SetResult<TestVertex> execute(Graph<Vertex, Edge> graph); }
CucumberRunnersOperation extends AbstractGraphOperation<SetResult<TestVertex>> { @Override public SetResult<TestVertex> execute(Graph<Vertex, Edge> graph) { return new SetResult<>(emptyIfFalse(graph.containsVertex(CUCUMBER_RUNNER_VERTEX), () -> graph.edgesOf(CUCUMBER_RUNNER_VERTEX).stream().map(e -> (TestVertex) e.getTarget()))); }  @Override SetResult<TestVertex> execute(Graph<Vertex, Edge> graph);  }