DawgConfiguration { public String getDawgPoundUrl() { return DawgConfiguration.slash(this.get(DAWG_POUND_URL)); } DawgConfiguration(); String getDawgShowUrl(); String getDawgHouseUrl(); String getDawgVersion(); String getDawgShowHealthUrl(); String getDawgHouseHealthUrl(); String getDawgPoundHealthUrl(); String getDawgPoundUrl(); AuthServerConfig getAuthConfig(); LdapAuthServerConfig getLdapAuthConfig(); String get(String key); String get(String key, String def); T get(String key, Class<T> clazz, T def); void put(String key, String value); void load(String configFileName); boolean tryLoad(String configFileName); void load(InputStream is); boolean tryLoad(InputStream is); static final String INI_SECTION; static final String INI_AUTH_SECTION; static final String DAWG_PATH_PARAM; static final String DEFAULT_DAWG_PATH; static final String DAWG_SHOW_URL; static final String DAWG_HOUSE_URL; static final String DAWG_POUND_URL; static final String DAWG_SHOW_HEALTH_URL; static final String DAWG_HOUSE_HEALTH_URL; static final String DAWG_POUND_HEALTH_URL; static final String DEFAULT_DAWG_SHOW_HEALTH_URL; static final String DEFAULT_DAWG_HOUSE_HEALTH_URL; static final String DEFAULT_DAWG_POUND_HEALTH_URL; static final String DAWG_VERSION; }
@Test public void testGetDawgPoundUrl() { DawgConfiguration config = new DawgConfiguration(); config.put("dawg-pound-url", "url"); String expected = "url/"; Assert.assertEquals(config.getDawgPoundUrl(), expected); }