@Test public void testGetNodeStream() { final Stream<Node> expectedStream = Stream.of(mock(Node.class)); when(dmnDiagramsSession.getCurrentGraphDiagram()).thenReturn(diagram); when(dmnDiagramUtils.getNodeStream(diagram)).thenReturn(expectedStream); final Stream<Node> actualStream = utils.getNodeStream(); assertEquals(expectedStream, actualStream); }
public Stream<Node> getNodeStream(final Diagram diagram) { return dmnDiagramUtils.getNodeStream(diagram); }
DMNGraphUtils { public Stream<Node> getNodeStream(final Diagram diagram) { return dmnDiagramUtils.getNodeStream(diagram); } }
DMNGraphUtils { public Stream<Node> getNodeStream(final Diagram diagram) { return dmnDiagramUtils.getNodeStream(diagram); } DMNGraphUtils(); @Inject  DMNGraphUtils(final SessionManager sessionManager,
                         final DMNDiagramUtils dmnDiagramUtils,
                         final DMNDiagramsSession dmnDiagramsSession); }
DMNGraphUtils { public Stream<Node> getNodeStream(final Diagram diagram) { return dmnDiagramUtils.getNodeStream(diagram); } DMNGraphUtils(); @Inject  DMNGraphUtils(final SessionManager sessionManager,
                         final DMNDiagramUtils dmnDiagramUtils,
                         final DMNDiagramsSession dmnDiagramsSession); Definitions getModelDefinitions(); List<DRGElement> getModelDRGElements(); Definitions getDefinitions(final Diagram diagram); List<DRGElement> getDRGElements(final Diagram diagram); Stream<Node> getNodeStream(final Diagram diagram); Optional<ClientSession> getCurrentSession(); Stream<Node> getNodeStream(); CanvasHandler getCanvasHandler(); }
DMNGraphUtils { public Stream<Node> getNodeStream(final Diagram diagram) { return dmnDiagramUtils.getNodeStream(diagram); } DMNGraphUtils(); @Inject  DMNGraphUtils(final SessionManager sessionManager,
                         final DMNDiagramUtils dmnDiagramUtils,
                         final DMNDiagramsSession dmnDiagramsSession); Definitions getModelDefinitions(); List<DRGElement> getModelDRGElements(); Definitions getDefinitions(final Diagram diagram); List<DRGElement> getDRGElements(final Diagram diagram); Stream<Node> getNodeStream(final Diagram diagram); Optional<ClientSession> getCurrentSession(); Stream<Node> getNodeStream(); CanvasHandler getCanvasHandler();  }