SVN implements SourceControl { public void setPropertyOnDelete(String propertyOnDelete) { properties.assignPropertyOnDeleteName(propertyOnDelete); }  Map<String, String> getProperties(); void setProperty(String property); void setPropertyOnDelete(String propertyOnDelete); void setConfigDir(String configDir); void setCheckExternals(boolean value); void setRepositoryLocation(String repositoryLocation); void setLocalWorkingCopy(String localWorkingCopy); void setUsername(String userName); void setPassword(String password); void validate(); List<Modification> getModifications(final Date lastBuild, final Date now); static DateFormat getOutDateFormatter(); void setUseLocalRevision(boolean useLocalRevision);  }
@Test public void testSetPropertyOnDelete() throws ParseException { svn.setPropertyOnDelete("hasDeletions?"); final List<Modification> noModifications = new ArrayList<Modification>(); svn.fillPropertiesIfNeeded(noModifications); assertThat(svn.getProperties().get("hasDeletions?"), nullValue()); final List<Modification> noDeletions = new ArrayList<Modification>(); noDeletions.add(createModification(SVN.getOutDateFormatter().parse("2003-08-02T10:01:13.349"), "lee", "bli", "663", "", "/trunk/playground/bbb", "added")); svn.fillPropertiesIfNeeded(noDeletions); assertThat(svn.getProperties().get("hasDeletions?"), nullValue()); final List<Modification> hasDeletions = new ArrayList<Modification>(); hasDeletions.add(createModification(SVN.getOutDateFormatter().parse("2003-08-02T10:01:13.349"), "lee", "bli", "663", "", "/trunk/playground/aaa", "added")); hasDeletions.add(createModification(SVN.getOutDateFormatter().parse("2003-08-02T10:01:13.349"), "lee", "bli", "663", "", "/trunk/playground/bbb", "deleted")); svn.fillPropertiesIfNeeded(hasDeletions); assertThat(svn.getProperties().get("hasDeletions?"), equalTo("true")); }