@Test public void testReturnOriginalValue() { property.setOverridden(true); assertTrue(property.returnOriginalValue()); property.setOriginalValue(new FakeSCM(), false); assertTrue(property.returnOriginalValue()); property.setOriginalValue(property.getDefaultValue(), false); assertFalse(property.returnOriginalValue()); property.setOriginalValue(null, false); assertFalse(property.returnOriginalValue()); }
@Override protected boolean returnOriginalValue() { return isOverridden() || (null != getOriginalValue() && !getDefaultValue().equals(getOriginalValue())); }
SCMProjectProperty extends BaseProjectProperty<SCM> { @Override protected boolean returnOriginalValue() { return isOverridden() || (null != getOriginalValue() && !getDefaultValue().equals(getOriginalValue())); } }
SCMProjectProperty extends BaseProjectProperty<SCM> { @Override protected boolean returnOriginalValue() { return isOverridden() || (null != getOriginalValue() && !getDefaultValue().equals(getOriginalValue())); } SCMProjectProperty(ICascadingJob job); }
SCMProjectProperty extends BaseProjectProperty<SCM> { @Override protected boolean returnOriginalValue() { return isOverridden() || (null != getOriginalValue() && !getDefaultValue().equals(getOriginalValue())); } SCMProjectProperty(ICascadingJob job); @Override SCM getDefaultValue(); }
SCMProjectProperty extends BaseProjectProperty<SCM> { @Override protected boolean returnOriginalValue() { return isOverridden() || (null != getOriginalValue() && !getDefaultValue().equals(getOriginalValue())); } SCMProjectProperty(ICascadingJob job); @Override SCM getDefaultValue();  }