@Test public void testHandleAttributeAddition_LockLHS() { popup.handleAttributeAddition(RuleAttributeWidget.LOCK_LHS); assertThat(model.attributes).isEmpty(); assertThat(model.metadataList).containsExactly(new RuleMetadata(RuleAttributeWidget.LOCK_LHS, "true")); verify(refreshCommand).execute(); }
@Override protected void handleAttributeAddition(final String attributeName) { if (attributeName.equals(RuleAttributeWidget.LOCK_LHS) || attributeName.equals(RuleAttributeWidget.LOCK_RHS)) { model.addMetadata(new RuleMetadata(attributeName, "true")); } else { model.addAttribute(new RuleAttribute(attributeName, "")); } refresh.execute(); }
GuidedRuleAttributeSelectorPopup extends AttributeSelectorPopup { @Override protected void handleAttributeAddition(final String attributeName) { if (attributeName.equals(RuleAttributeWidget.LOCK_LHS) || attributeName.equals(RuleAttributeWidget.LOCK_RHS)) { model.addMetadata(new RuleMetadata(attributeName, "true")); } else { model.addAttribute(new RuleAttribute(attributeName, "")); } refresh.execute(); } }
GuidedRuleAttributeSelectorPopup extends AttributeSelectorPopup { @Override protected void handleAttributeAddition(final String attributeName) { if (attributeName.equals(RuleAttributeWidget.LOCK_LHS) || attributeName.equals(RuleAttributeWidget.LOCK_RHS)) { model.addMetadata(new RuleMetadata(attributeName, "true")); } else { model.addAttribute(new RuleAttribute(attributeName, "")); } refresh.execute(); }  }
GuidedRuleAttributeSelectorPopup extends AttributeSelectorPopup { @Override protected void handleAttributeAddition(final String attributeName) { if (attributeName.equals(RuleAttributeWidget.LOCK_LHS) || attributeName.equals(RuleAttributeWidget.LOCK_RHS)) { model.addMetadata(new RuleMetadata(attributeName, "true")); } else { model.addAttribute(new RuleAttribute(attributeName, "")); } refresh.execute(); }  void init(final RuleModel model,
                     final boolean lockLHS,
                     final boolean lockRHS,
                     final Command refresh); }
GuidedRuleAttributeSelectorPopup extends AttributeSelectorPopup { @Override protected void handleAttributeAddition(final String attributeName) { if (attributeName.equals(RuleAttributeWidget.LOCK_LHS) || attributeName.equals(RuleAttributeWidget.LOCK_RHS)) { model.addMetadata(new RuleMetadata(attributeName, "true")); } else { model.addAttribute(new RuleAttribute(attributeName, "")); } refresh.execute(); }  void init(final RuleModel model,
                     final boolean lockLHS,
                     final boolean lockRHS,
                     final Command refresh);  }