ConditionColumnPlugin extends BaseDecisionTableColumnPlugin implements HasFieldPage,
                                                                                    HasPatternPage,
                                                                                    HasValueOptionsPage,
                                                                                    HasAdditionalInfoPage { public String getFactType() { return patternWrapper().getFactType(); } @Inject  ConditionColumnPlugin(final PatternPage<ConditionColumnPlugin> patternPage,
                                 final CalculationTypePage calculationTypePage,
                                 final FieldPage<ConditionColumnPlugin> fieldPage,
                                 final OperatorPage operatorPage,
                                 final ValueOptionsPage<ConditionColumnPlugin> valueOptionsPage,
                                 final AdditionalInfoPage<ConditionColumnPlugin> additionalInfoPage,
                                 final Event<WizardPageStatusChangeEvent> changeEvent,
                                 final TranslationService translationService); @Override String getTitle(); @Override void init(NewGuidedDecisionTableColumnWizard wizard); @Override List<WizardPage> getPages(); @Override Boolean generateColumn(); @Override Type getType(); @Override Pattern52 editingPattern(); Pattern52 getEditingPattern(); @Override void setEditingPattern(final PatternWrapper patternWrapper); @Override PatternWrapper patternWrapper(); @Override String getEntryPointName(); @Override void setEntryPointName(final String entryPointName); @Override String getPatternPageDescription(); @Override Set<PatternWrapper> getPatterns(); @Override ConditionCol52 editingCol(); @Override String getHeader(); @Override void setHeader(final String header); @Override Set<String> getAlreadyUsedColumnHeaders(); @Override boolean isHideColumn(); @Override void setHideColumn(boolean hideColumn); @Override void setInsertLogical(Boolean value); @Override void setUpdate(Boolean value); @Override boolean showUpdateEngineWithChanges(); @Override boolean showLogicallyInsert(); @Override boolean isLogicallyInsert(); @Override boolean isUpdateEngine(); @Override String getFactField(); @Override void setFactField(final String selectedValue); @Override String getBinding(); @Override void setBinding(final String binding); @Override boolean doesOperatorNeedValue(); @Override boolean isBindable(); @Override int constraintValue(); @Override FieldAccessorsAndMutators getAccessor(); @Override boolean filterEnumFields(); @Override TableFormat tableFormat(); @Override String getValueList(); @Override void setValueList(final String valueList); @Override boolean doesOperatorAcceptValueList(); @Override IsWidget defaultValueWidget(); @Override IsWidget limitedValueWidget(); void setConstraintValue(final int constraintValue); @Override void setValueOptionsPageAsCompleted(); @Override Boolean isValueOptionsPageCompleted(); @Override boolean isFieldBindingValid(); String getFactType(); void setOperator(final String operator); String operatorPlaceholder();  }
@Test public void testGetFactType() throws Exception { final PatternWrapper pattern = mock(PatternWrapper.class); final String expectedFactType = "FactType"; doReturn(expectedFactType).when(pattern).getFactType(); doReturn(pattern).when(plugin).patternWrapper(); final String factType = plugin.getFactType(); assertEquals(expectedFactType, factType); }