UpdateConfiguration { public String getApplicationName() { return properties.getProperty(UPDATE_APPLICATION_NAME); } 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 knowsApplicationName() throws Exception { properties.put("update.applicationName", "testname"); assertThat(configuration.getApplicationName(), is("testname")); }