@Test public void testCanSetupLimitedValueWhenTableFormatIsNotLimitedEntry() throws Exception { when(plugin.editingCol()).thenReturn(new LimitedEntryConditionCol52()); when(model.getTableFormat()).thenReturn(GuidedDecisionTable52.TableFormat.EXTENDED_ENTRY); when(plugin.doesOperatorNeedValue()).thenReturn(true); assertFalse(page.canSetupLimitedValue()); }
boolean canSetupLimitedValue() { if (!isLimitedValueEnabled()) { return false; } if (tableFormat() != GuidedDecisionTable52.TableFormat.LIMITED_ENTRY) { return false; } if (doesNotHaveFactTypeOrFactField()) { return false; } if (!plugin().doesOperatorNeedValue()) { return false; } return true; }
ValueOptionsPage extends BaseDecisionTableColumnPage<T> { boolean canSetupLimitedValue() { if (!isLimitedValueEnabled()) { return false; } if (tableFormat() != GuidedDecisionTable52.TableFormat.LIMITED_ENTRY) { return false; } if (doesNotHaveFactTypeOrFactField()) { return false; } if (!plugin().doesOperatorNeedValue()) { return false; } return true; } }
ValueOptionsPage extends BaseDecisionTableColumnPage<T> { boolean canSetupLimitedValue() { if (!isLimitedValueEnabled()) { return false; } if (tableFormat() != GuidedDecisionTable52.TableFormat.LIMITED_ENTRY) { return false; } if (doesNotHaveFactTypeOrFactField()) { return false; } if (!plugin().doesOperatorNeedValue()) { return false; } return true; } @Inject  ValueOptionsPage(final View view,
                            final TranslationService translationService); }
ValueOptionsPage extends BaseDecisionTableColumnPage<T> { boolean canSetupLimitedValue() { if (!isLimitedValueEnabled()) { return false; } if (tableFormat() != GuidedDecisionTable52.TableFormat.LIMITED_ENTRY) { return false; } if (doesNotHaveFactTypeOrFactField()) { return false; } if (!plugin().doesOperatorNeedValue()) { return false; } return true; } @Inject  ValueOptionsPage(final View view,
                            final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView(); void enableValueList(); void enableCepOperators(); void enableDefaultValue(); void enableLimitedValue(); String getValueList(); void setValueList(final String valueList); int constraintValue(); }
ValueOptionsPage extends BaseDecisionTableColumnPage<T> { boolean canSetupLimitedValue() { if (!isLimitedValueEnabled()) { return false; } if (tableFormat() != GuidedDecisionTable52.TableFormat.LIMITED_ENTRY) { return false; } if (doesNotHaveFactTypeOrFactField()) { return false; } if (!plugin().doesOperatorNeedValue()) { return false; } return true; } @Inject  ValueOptionsPage(final View view,
                            final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView(); void enableValueList(); void enableCepOperators(); void enableDefaultValue(); void enableLimitedValue(); String getValueList(); void setValueList(final String valueList); int constraintValue();  }