UpdateConfiguration { public String repositoryLocationForLatestVersion() { return properties.getProperty(UPDATE_LATEST_VERSION_REPOSITORY_LOCATION); } UpdateConfiguration(Properties properties); String getApplicationName(); UpdateStrategy getStrategy(); String getLocationForFixedVersion(); RepositoryType repositoryTypeForLatestVersion(); String repositoryLocationForLatestVersion(); static final String UPDATE_APPLICATION_NAME; static final String UPDATE_STRATEGY; static final String UPDATE_LATEST_VERSION_REPOSITORY_TYPE; static final String UPDATE_FIXED_VERSION_LOCATION; static final String UPDATE_LATEST_VERSION_REPOSITORY_LOCATION; }
@Test public void knowsLocationOfRepositoryForLatestVersion() throws Exception { properties.put("update.LatestVersion.repository.location", "./aPath"); assertThat(configuration.repositoryLocationForLatestVersion(), is("./aPath")); }