@Test public void testGetAlreadyUsedColumnNames() throws Exception { model.getActionCols().add(actionCol52("a")); model.getActionCols().add(actionCol52("b")); when(presenter.getModel()).thenReturn(model); assertEquals(2, plugin.getAlreadyUsedColumnHeaders().size()); assertTrue(plugin.getAlreadyUsedColumnHeaders().contains("a")); assertTrue(plugin.getAlreadyUsedColumnHeaders().contains("b")); }
@Override public Set<String> getAlreadyUsedColumnHeaders() { return presenter .getModel() .getActionCols() .stream() .map(DTColumnConfig52::getHeader) .collect(Collectors.toSet()); }
ActionRetractFactPlugin extends BaseDecisionTableColumnPlugin implements HasAdditionalInfoPage { @Override public Set<String> getAlreadyUsedColumnHeaders() { return presenter .getModel() .getActionCols() .stream() .map(DTColumnConfig52::getHeader) .collect(Collectors.toSet()); } }
ActionRetractFactPlugin extends BaseDecisionTableColumnPlugin implements HasAdditionalInfoPage { @Override public Set<String> getAlreadyUsedColumnHeaders() { return presenter .getModel() .getActionCols() .stream() .map(DTColumnConfig52::getHeader) .collect(Collectors.toSet()); } @Inject  ActionRetractFactPlugin(final PatternToDeletePage patternToDeletePage,
                                   final AdditionalInfoPage additionalInfoPage,
                                   final Event<WizardPageStatusChangeEvent> changeEvent,
                                   final TranslationService translationService); }
ActionRetractFactPlugin extends BaseDecisionTableColumnPlugin implements HasAdditionalInfoPage { @Override public Set<String> getAlreadyUsedColumnHeaders() { return presenter .getModel() .getActionCols() .stream() .map(DTColumnConfig52::getHeader) .collect(Collectors.toSet()); } @Inject  ActionRetractFactPlugin(final PatternToDeletePage patternToDeletePage,
                                   final AdditionalInfoPage additionalInfoPage,
                                   final Event<WizardPageStatusChangeEvent> changeEvent,
                                   final TranslationService translationService); @Override void init(final NewGuidedDecisionTableColumnWizard wizard); @Override String getTitle(); @Override List<WizardPage> getPages(); @Override Boolean generateColumn(); @Override ActionRetractFactCol52 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(final Boolean value); @Override void setUpdate(final Boolean value); @Override boolean showUpdateEngineWithChanges(); @Override boolean showLogicallyInsert(); @Override boolean isLogicallyInsert(); @Override boolean isUpdateEngine(); String getEditingColStringValue(); void setEditingColStringValue(final String pattern); void setPatternToDeletePageAsCompleted(); Boolean isPatternToDeletePageCompleted(); @Override Type getType(); }
ActionRetractFactPlugin extends BaseDecisionTableColumnPlugin implements HasAdditionalInfoPage { @Override public Set<String> getAlreadyUsedColumnHeaders() { return presenter .getModel() .getActionCols() .stream() .map(DTColumnConfig52::getHeader) .collect(Collectors.toSet()); } @Inject  ActionRetractFactPlugin(final PatternToDeletePage patternToDeletePage,
                                   final AdditionalInfoPage additionalInfoPage,
                                   final Event<WizardPageStatusChangeEvent> changeEvent,
                                   final TranslationService translationService); @Override void init(final NewGuidedDecisionTableColumnWizard wizard); @Override String getTitle(); @Override List<WizardPage> getPages(); @Override Boolean generateColumn(); @Override ActionRetractFactCol52 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(final Boolean value); @Override void setUpdate(final Boolean value); @Override boolean showUpdateEngineWithChanges(); @Override boolean showLogicallyInsert(); @Override boolean isLogicallyInsert(); @Override boolean isUpdateEngine(); String getEditingColStringValue(); void setEditingColStringValue(final String pattern); void setPatternToDeletePageAsCompleted(); Boolean isPatternToDeletePageCompleted(); @Override Type getType();  }