@Test public void testGetLabel() { final DecisionTable expression = new DecisionTable(); when(boxedExpressionHelper.getExpression(node)).thenReturn(expression); final String actualLabel = factory.getLabel(node); assertEquals(DECISION_TABLE_DEFINITION_NAME, actualLabel); }
String getLabel(final Node<View, Edge> node) { final Optional<Expression> expression = Optional.of(getExpression(node)); return expressionEditorDefinitionsSupplier.get().getExpressionEditorDefinition(expression).get().getName(); }
DecisionNavigatorNestedItemFactory { String getLabel(final Node<View, Edge> node) { final Optional<Expression> expression = Optional.of(getExpression(node)); return expressionEditorDefinitionsSupplier.get().getExpressionEditorDefinition(expression).get().getName(); } }
DecisionNavigatorNestedItemFactory { String getLabel(final Node<View, Edge> node) { final Optional<Expression> expression = Optional.of(getExpression(node)); return expressionEditorDefinitionsSupplier.get().getExpressionEditorDefinition(expression).get().getName(); } @Inject  DecisionNavigatorNestedItemFactory(final SessionManager sessionManager,
                                              final Event<EditExpressionEvent> editExpressionEvent,
                                              final DMNGraphUtils dmnGraphUtils,
                                              final @DMNEditor Supplier<ExpressionEditorDefinitions> expressionEditorDefinitionsSupplier,
                                              final Event<CanvasSelectionEvent> canvasSelectionEvent,
                                              final BoxedExpressionHelper helper); }
DecisionNavigatorNestedItemFactory { String getLabel(final Node<View, Edge> node) { final Optional<Expression> expression = Optional.of(getExpression(node)); return expressionEditorDefinitionsSupplier.get().getExpressionEditorDefinition(expression).get().getName(); } @Inject  DecisionNavigatorNestedItemFactory(final SessionManager sessionManager,
                                              final Event<EditExpressionEvent> editExpressionEvent,
                                              final DMNGraphUtils dmnGraphUtils,
                                              final @DMNEditor Supplier<ExpressionEditorDefinitions> expressionEditorDefinitionsSupplier,
                                              final Event<CanvasSelectionEvent> canvasSelectionEvent,
                                              final BoxedExpressionHelper helper); DecisionNavigatorItem makeItem(final Node<View, Edge> node); boolean hasNestedElement(final Node<View, Edge> node); }
DecisionNavigatorNestedItemFactory { String getLabel(final Node<View, Edge> node) { final Optional<Expression> expression = Optional.of(getExpression(node)); return expressionEditorDefinitionsSupplier.get().getExpressionEditorDefinition(expression).get().getName(); } @Inject  DecisionNavigatorNestedItemFactory(final SessionManager sessionManager,
                                              final Event<EditExpressionEvent> editExpressionEvent,
                                              final DMNGraphUtils dmnGraphUtils,
                                              final @DMNEditor Supplier<ExpressionEditorDefinitions> expressionEditorDefinitionsSupplier,
                                              final Event<CanvasSelectionEvent> canvasSelectionEvent,
                                              final BoxedExpressionHelper helper); DecisionNavigatorItem makeItem(final Node<View, Edge> node); boolean hasNestedElement(final Node<View, Edge> node);  }