use of hudson.triggers.Trigger in project hudson-2.x by hudson.
the class TriggerProjectPropertyTest method testOnCascadingProjectRemoved.
/**
* Verify {@link TriggerProjectProperty#onCascadingProjectRemoved()} method.
*
* @throws antlr.ANTLRException if any
*/
@Test
public void testOnCascadingProjectRemoved() throws ANTLRException {
Trigger trigger = new TimerTrigger("* * * * *");
property.setOriginalValue(trigger, false);
assertTrue(trigger == property.getOriginalValue());
assertFalse(property.isOverridden());
property.onCascadingProjectRemoved();
assertFalse(property.isOverridden());
assertTrue(trigger == property.getOriginalValue());
}
Aggregations