@Test public void testGenerateColumn() throws Exception { doReturn(BaseSingleFieldConstraint.TYPE_UNDEFINED).when(plugin).constraintValue(); plugin.setupDefaultValues(); final Boolean result = plugin.generateColumn(); assertTrue(result); verify(plugin).prepareValues(); verify(plugin).appendColumn(); }
@Override public Boolean generateColumn() { prepareValues(); try { appendColumn(); } catch (VetoUpdatePatternInUseException veto) { wizard.showPatternInUseError(); return false; } catch (VetoException veto) { wizard.showGenericVetoError(); return false; } return true; }
ConditionColumnPlugin extends BaseDecisionTableColumnPlugin implements HasFieldPage,
                                                                                    HasPatternPage,
                                                                                    HasValueOptionsPage,
                                                                                    HasAdditionalInfoPage { @Override public Boolean generateColumn() { prepareValues(); try { appendColumn(); } catch (VetoUpdatePatternInUseException veto) { wizard.showPatternInUseError(); return false; } catch (VetoException veto) { wizard.showGenericVetoError(); return false; } return true; } }
ConditionColumnPlugin extends BaseDecisionTableColumnPlugin implements HasFieldPage,
                                                                                    HasPatternPage,
                                                                                    HasValueOptionsPage,
                                                                                    HasAdditionalInfoPage { @Override public Boolean generateColumn() { prepareValues(); try { appendColumn(); } catch (VetoUpdatePatternInUseException veto) { wizard.showPatternInUseError(); return false; } catch (VetoException veto) { wizard.showGenericVetoError(); return false; } return true; } @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 Boolean generateColumn() { prepareValues(); try { appendColumn(); } catch (VetoUpdatePatternInUseException veto) { wizard.showPatternInUseError(); return false; } catch (VetoException veto) { wizard.showGenericVetoError(); return false; } return true; } @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 Boolean generateColumn() { prepareValues(); try { appendColumn(); } catch (VetoUpdatePatternInUseException veto) { wizard.showPatternInUseError(); return false; } catch (VetoException veto) { wizard.showGenericVetoError(); return false; } return true; } @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();  }