@Test public void fails_on_invalid_changelog_location() { Collection<String> errors = validator.validate( changelogLoader, "unlikelytobefoundchangelog.xml" ); assertThat(errors).containsExactly( "'masterChangelog' points to a non-existing location: unlikelytobefoundchangelog.xml" ); }
public Collection<String> validate(ChangelogLoader loader, String masterChangelog) { Collection<String> errors = new LinkedList<>(); errors.addAll(validateMasterChangelog(masterChangelog, loader)); return errors; }
MandatoryOptionValidator { public Collection<String> validate(ChangelogLoader loader, String masterChangelog) { Collection<String> errors = new LinkedList<>(); errors.addAll(validateMasterChangelog(masterChangelog, loader)); return errors; } }
MandatoryOptionValidator { public Collection<String> validate(ChangelogLoader loader, String masterChangelog) { Collection<String> errors = new LinkedList<>(); errors.addAll(validateMasterChangelog(masterChangelog, loader)); return errors; }  }
MandatoryOptionValidator { public Collection<String> validate(ChangelogLoader loader, String masterChangelog) { Collection<String> errors = new LinkedList<>(); errors.addAll(validateMasterChangelog(masterChangelog, loader)); return errors; }  Collection<String> validate(ChangelogLoader loader, String masterChangelog); }
MandatoryOptionValidator { public Collection<String> validate(ChangelogLoader loader, String masterChangelog) { Collection<String> errors = new LinkedList<>(); errors.addAll(validateMasterChangelog(masterChangelog, loader)); return errors; }  Collection<String> validate(ChangelogLoader loader, String masterChangelog);  }