@Test public void validateTest_keepNVersions0() { Validator tested = validatorBuilder.setKeepNVersions(0L).build(); tested.validate(builder); assertThat(builder.isValid(), is(false)); assertThat(builder.getErrorMessages(), Matchers.hasSize(1)); assertThat(builder.getErrorMessages().get(0).getMessage(), is("Leave N Patterns has to be greater than 0")); }
@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);  }