@Test public void testGetDeprecatedAdministrativeEnabled() throws Exception { System.out.println("\n===[ testGetDeprecatedAdministrativeEnabled ]===\n"); Clock clock = createClock(SUMMER_SOLSTICE); ActivationComputer activationComputer = createActivationComputer(clock); ActivationType activationType = createActivationType(ActivationStatusType.ENABLED, SPRING_EQUINOX, AUTUMN_EQUINOX); ActivationStatusType effectiveStatus = activationComputer.getEffectiveStatus(SchemaConstants.LIFECYCLE_DEPRECATED, activationType); assertEquals("Unexpected effective status", ActivationStatusType.ENABLED, effectiveStatus); }
public ActivationStatusType getEffectiveStatus(String lifecycleStatus, ActivationType activationType) { return getEffectiveStatus(lifecycleStatus, activationType, getValidityStatus(activationType)); }
ActivationComputer { public ActivationStatusType getEffectiveStatus(String lifecycleStatus, ActivationType activationType) { return getEffectiveStatus(lifecycleStatus, activationType, getValidityStatus(activationType)); } }
ActivationComputer { public ActivationStatusType getEffectiveStatus(String lifecycleStatus, ActivationType activationType) { return getEffectiveStatus(lifecycleStatus, activationType, getValidityStatus(activationType)); } ActivationComputer();  ActivationComputer(Clock clock); }
ActivationComputer { public ActivationStatusType getEffectiveStatus(String lifecycleStatus, ActivationType activationType) { return getEffectiveStatus(lifecycleStatus, activationType, getValidityStatus(activationType)); } ActivationComputer();  ActivationComputer(Clock clock); Clock getClock(); void setClock(Clock clock); ActivationStatusType getEffectiveStatus(String lifecycleStatus, ActivationType activationType); ActivationStatusType getEffectiveStatus(String lifecycleStatus, ActivationType activationType, TimeIntervalStatusType validityStatus); TimeIntervalStatusType getValidityStatus(ActivationType activationType); TimeIntervalStatusType getValidityStatus(ActivationType activationType, XMLGregorianCalendar referenceTime); void computeEffective(String lifecycleStatus, ActivationType activationType); void computeEffective(String lifecycleStatus, ActivationType activationType, XMLGregorianCalendar referenceTime); boolean isActive(String lifecycleStatus, ActivationType activationType); boolean lifecycleHasActiveAssignments(String lifecycleStatus); boolean lifecycleIsActive(String lifecycleStatus); }
ActivationComputer { public ActivationStatusType getEffectiveStatus(String lifecycleStatus, ActivationType activationType) { return getEffectiveStatus(lifecycleStatus, activationType, getValidityStatus(activationType)); } ActivationComputer();  ActivationComputer(Clock clock); Clock getClock(); void setClock(Clock clock); ActivationStatusType getEffectiveStatus(String lifecycleStatus, ActivationType activationType); ActivationStatusType getEffectiveStatus(String lifecycleStatus, ActivationType activationType, TimeIntervalStatusType validityStatus); TimeIntervalStatusType getValidityStatus(ActivationType activationType); TimeIntervalStatusType getValidityStatus(ActivationType activationType, XMLGregorianCalendar referenceTime); void computeEffective(String lifecycleStatus, ActivationType activationType); void computeEffective(String lifecycleStatus, ActivationType activationType, XMLGregorianCalendar referenceTime); boolean isActive(String lifecycleStatus, ActivationType activationType); boolean lifecycleHasActiveAssignments(String lifecycleStatus); boolean lifecycleIsActive(String lifecycleStatus);  }