IvySourceControl extends FakeUserSourceControl { @Override public List<Modification> getModifications(final Date lastBuild, final Date now) { try { return getModifications(lastBuild, artifacts()); } catch (Exception e) { LOG.error(e.getMessage()); } return Collections.emptyList(); }  @Override List<Modification> getModifications(final Date lastBuild, final Date now); @Override void validate(); String getIvyXml(); void setIvyXml(final String ivyXml); void setIvySettings(final String ivySettings); String getIvySettings();  }
@Test public void shouldReportNoModificationsWhenNoArtifactsFound() { List<Artifact> artifacts = new ArrayList<Artifact>(); assertEquals(0, ivy.getModifications(null, artifacts).size()); }