@Test public void testGetType() { final DecisionTable expression = new DecisionTable(); final DecisionNavigatorItem.Type expectedType = DECISION_TABLE; when(boxedExpressionHelper.getExpression(node)).thenReturn(expression); final DecisionNavigatorItem.Type actualType = factory.getType(node); assertEquals(expectedType, actualType); }
DecisionNavigatorItem.Type getType(final Node<View, Edge> node) { return ITEM_TYPE_BY_EXPRESSION.get(getExpression(node).getClass()); }
DecisionNavigatorNestedItemFactory { DecisionNavigatorItem.Type getType(final Node<View, Edge> node) { return ITEM_TYPE_BY_EXPRESSION.get(getExpression(node).getClass()); } }
DecisionNavigatorNestedItemFactory { DecisionNavigatorItem.Type getType(final Node<View, Edge> node) { return ITEM_TYPE_BY_EXPRESSION.get(getExpression(node).getClass()); } @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 { DecisionNavigatorItem.Type getType(final Node<View, Edge> node) { return ITEM_TYPE_BY_EXPRESSION.get(getExpression(node).getClass()); } @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 { DecisionNavigatorItem.Type getType(final Node<View, Edge> node) { return ITEM_TYPE_BY_EXPRESSION.get(getExpression(node).getClass()); } @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);  }