@Test public void testSetFactField() throws Exception { final PatternWrapper pattern = mock(PatternWrapper.class); doReturn("FactField").when(editingCol).getFactField(); doReturn(editingCol).when(plugin).editingCol(); doReturn("FactType").when(pattern).getFactType(); doReturn(pattern).when(plugin).patternWrapper(); doReturn(oracle).when(presenter).getDataModelOracle(); plugin.setFactField("FactField"); verify(editingCol).setFactField("FactField"); verify(editingCol).setFieldType(oracle.getFieldType("FactField", "FactType")); verify(plugin).fireChangeEvent(fieldPage); verify(plugin).fireChangeEvent(operatorPage); verify(plugin).fireChangeEvent(additionalInfoPage); verify(plugin).fireChangeEvent(valueOptionsPage); }
@Override public void setFactField(final String selectedValue) { final AsyncPackageDataModelOracle oracle = presenter.getDataModelOracle(); editingCol().setFactField(selectedValue); editingCol().setFieldType(oracle.getFieldType(getFactType(), getFactField())); fireChangeEvent(fieldPage); fireChangeEvent(operatorPage); fireChangeEvent(additionalInfoPage); fireChangeEvent(valueOptionsPage); }
ConditionColumnPlugin extends BaseDecisionTableColumnPlugin implements HasFieldPage,
                                                                                    HasPatternPage,
                                                                                    HasValueOptionsPage,
                                                                                    HasAdditionalInfoPage { @Override public void setFactField(final String selectedValue) { final AsyncPackageDataModelOracle oracle = presenter.getDataModelOracle(); editingCol().setFactField(selectedValue); editingCol().setFieldType(oracle.getFieldType(getFactType(), getFactField())); fireChangeEvent(fieldPage); fireChangeEvent(operatorPage); fireChangeEvent(additionalInfoPage); fireChangeEvent(valueOptionsPage); } }
ConditionColumnPlugin extends BaseDecisionTableColumnPlugin implements HasFieldPage,
                                                                                    HasPatternPage,
                                                                                    HasValueOptionsPage,
                                                                                    HasAdditionalInfoPage { @Override public void setFactField(final String selectedValue) { final AsyncPackageDataModelOracle oracle = presenter.getDataModelOracle(); editingCol().setFactField(selectedValue); editingCol().setFieldType(oracle.getFieldType(getFactType(), getFactField())); fireChangeEvent(fieldPage); fireChangeEvent(operatorPage); fireChangeEvent(additionalInfoPage); fireChangeEvent(valueOptionsPage); } @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); }
ConditionColumnPlugin extends BaseDecisionTableColumnPlugin implements HasFieldPage,
                                                                                    HasPatternPage,
                                                                                    HasValueOptionsPage,
                                                                                    HasAdditionalInfoPage { @Override public void setFactField(final String selectedValue) { final AsyncPackageDataModelOracle oracle = presenter.getDataModelOracle(); editingCol().setFactField(selectedValue); editingCol().setFieldType(oracle.getFieldType(getFactType(), getFactField())); fireChangeEvent(fieldPage); fireChangeEvent(operatorPage); fireChangeEvent(additionalInfoPage); fireChangeEvent(valueOptionsPage); } @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(); }
ConditionColumnPlugin extends BaseDecisionTableColumnPlugin implements HasFieldPage,
                                                                                    HasPatternPage,
                                                                                    HasValueOptionsPage,
                                                                                    HasAdditionalInfoPage { @Override public void setFactField(final String selectedValue) { final AsyncPackageDataModelOracle oracle = presenter.getDataModelOracle(); editingCol().setFactField(selectedValue); editingCol().setFieldType(oracle.getFieldType(getFactType(), getFactField())); fireChangeEvent(fieldPage); fireChangeEvent(operatorPage); fireChangeEvent(additionalInfoPage); fireChangeEvent(valueOptionsPage); } @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();  }