@Test public void testGetOnClickAction() { final DMNDiagramElement dmnDiagramElement = mock(DMNDiagramElement.class); factory.getOnClickAction(dmnDiagramElement).execute(); verify(selectedEvent).fire(diagramSelectedArgumentCaptor.capture()); assertEquals(dmnDiagramElement, diagramSelectedArgumentCaptor.getValue().getDiagramElement()); }
Command getOnClickAction(final DMNDiagramElement dmnDiagramElement) { return () -> { selectedEvent.fire(new DMNDiagramSelected(dmnDiagramElement)); }; }
DecisionNavigatorItemFactory { Command getOnClickAction(final DMNDiagramElement dmnDiagramElement) { return () -> { selectedEvent.fire(new DMNDiagramSelected(dmnDiagramElement)); }; } }
DecisionNavigatorItemFactory { Command getOnClickAction(final DMNDiagramElement dmnDiagramElement) { return () -> { selectedEvent.fire(new DMNDiagramSelected(dmnDiagramElement)); }; } @Inject  DecisionNavigatorItemFactory(final DecisionNavigatorBaseItemFactory baseItemFactory,
                                        final Event<DMNDiagramSelected> selectedEvent,
                                        final DMNDiagramsSession dmnDiagramsSession); }
DecisionNavigatorItemFactory { Command getOnClickAction(final DMNDiagramElement dmnDiagramElement) { return () -> { selectedEvent.fire(new DMNDiagramSelected(dmnDiagramElement)); }; } @Inject  DecisionNavigatorItemFactory(final DecisionNavigatorBaseItemFactory baseItemFactory,
                                        final Event<DMNDiagramSelected> selectedEvent,
                                        final DMNDiagramsSession dmnDiagramsSession); DecisionNavigatorItem makeItem(final Node<View, Edge> node); DecisionNavigatorItem makeRoot(final DMNDiagramTuple diagramTuple); DecisionNavigatorItem makeSeparator(final String label); }
DecisionNavigatorItemFactory { Command getOnClickAction(final DMNDiagramElement dmnDiagramElement) { return () -> { selectedEvent.fire(new DMNDiagramSelected(dmnDiagramElement)); }; } @Inject  DecisionNavigatorItemFactory(final DecisionNavigatorBaseItemFactory baseItemFactory,
                                        final Event<DMNDiagramSelected> selectedEvent,
                                        final DMNDiagramsSession dmnDiagramsSession); DecisionNavigatorItem makeItem(final Node<View, Edge> node); DecisionNavigatorItem makeRoot(final DMNDiagramTuple diagramTuple); DecisionNavigatorItem makeSeparator(final String label);  }