@Test public void validateTest_removeOlderThan() { Validator tested = validatorBuilder.setRemoveOlderThan(0L).build(); tested.validate(builder); assertThat(builder.isValid(), is(true)); tested = validatorBuilder.setRemoveOlderThan(1L).build(); tested.validate(builder); assertThat(builder.isValid(), is(true)); }
@Override public void validate(ValidationResultBuilder validationResultBuilder) { validateSchedule(validationResultBuilder); validateRestrictions(validationResultBuilder); }
CleanerSchedulerValidator implements Validator { @Override public void validate(ValidationResultBuilder validationResultBuilder) { validateSchedule(validationResultBuilder); validateRestrictions(validationResultBuilder); } }
CleanerSchedulerValidator implements Validator { @Override public void validate(ValidationResultBuilder validationResultBuilder) { validateSchedule(validationResultBuilder); validateRestrictions(validationResultBuilder); } CleanerSchedulerValidator(String schedule, Long keepNVersions, Long removeOlderThan); }
CleanerSchedulerValidator implements Validator { @Override public void validate(ValidationResultBuilder validationResultBuilder) { validateSchedule(validationResultBuilder); validateRestrictions(validationResultBuilder); } CleanerSchedulerValidator(String schedule, Long keepNVersions, Long removeOlderThan); @Override void validate(ValidationResultBuilder validationResultBuilder); }
CleanerSchedulerValidator implements Validator { @Override public void validate(ValidationResultBuilder validationResultBuilder) { validateSchedule(validationResultBuilder); validateRestrictions(validationResultBuilder); } CleanerSchedulerValidator(String schedule, Long keepNVersions, Long removeOlderThan); @Override void validate(ValidationResultBuilder validationResultBuilder);  }