@Test public void testGetNodes() { final GraphProcessorImpl tested = new GraphProcessorImpl(); final Graph<?, ?> graph = mock(Graph.class); final Iterable nodes = mock(Iterable.class); when(graph.nodes()).thenReturn(nodes); final Iterable<? extends Node> actual = tested.getNodes(graph); assertEquals(nodes, actual); }
public Iterable<? extends Node> getNodes(final Graph<?, ?> graph) { return graph.nodes(); }
GraphProcessorImpl implements GraphProcessor { public Iterable<? extends Node> getNodes(final Graph<?, ?> graph) { return graph.nodes(); } }
GraphProcessorImpl implements GraphProcessor { public Iterable<? extends Node> getNodes(final Graph<?, ?> graph) { return graph.nodes(); }  }
GraphProcessorImpl implements GraphProcessor { public Iterable<? extends Node> getNodes(final Graph<?, ?> graph) { return graph.nodes(); }  Iterable<? extends Node> getNodes(final Graph<?, ?> graph); }
GraphProcessorImpl implements GraphProcessor { public Iterable<? extends Node> getNodes(final Graph<?, ?> graph) { return graph.nodes(); }  Iterable<? extends Node> getNodes(final Graph<?, ?> graph);  }