VulasConfiguration { public String getServiceUrl(Service _service) { String value = null; try { value = getServiceUrl(_service, false); } catch (ServiceConnectionException e) { getLog().warn(e.getMessage(), e); } return value; } VulasConfiguration(); static final synchronized VulasConfiguration getGlobal(); org.apache.commons.configuration.Configuration getConfiguration(); void addLayerAfterSysProps(
      @NotNull String _layer_name,
      @NotNull Map<?, ?> _map,
      String _ignore_value,
      boolean _ignore_null); Configuration getConfigurationLayer(String _layer_name); void checkSettings(); boolean clearTransientProperties(); boolean isEmpty(String _key); Object getProperty(@NotNull String _key, Object _default); void setPropertyIfEmpty(@NotNull String _key, Object _value); void setProperty(@NotNull String _key, Object _value); void setProperty(
      @NotNull String _key, Object _value, String _ignore_value, boolean _ignore_null); String[] getStringArray(@NotNull String _key, String[] _default); Path getDir(String _key); Path getTmpDir(); String getServiceUrl(Service _service); String getServiceUrl(Service _service, boolean _throw_exception); Map<String, String> getServiceHeaders(Service _service); boolean hasServiceUrl(Service _service); void setServiceUrl(Service _service, String _value); static String getServiceUrlKey(Service _service); Path getLocalM2Repository(); void log(String[] _prefix, String _indent); final StringList getStringList(String... _config_names); static final String SYS_PROP_CFG_LAYER; static final String TRANSIENT_CFG_LAYER; static final String ENV_CFG_LAYER; static final String MAND_SETTINGS; static final String OPTI_SETTINGS; static final String VERSION; static final String BUILD_TIMESTAMP; static final String BUILD_NUMBER; static final String BUILD_BRANCH; static final String HOMEPAGE; static final String CHARSET; static final String TMP_DIR; static final String VULAS_JIRA_USER; static final String VULAS_JIRA_PWD; static final String M2_DIR; static final String SYS_PROPS; static final String SYS_PROPS_CUSTOM; static final String ENV_VARS; static final String ENV_VARS_CUSTOM; }
@Test public void testGetServiceUrl() { final String url = "http: VulasConfiguration c1 = new VulasConfiguration(); c1.setProperty(VulasConfiguration.getServiceUrlKey(Service.BACKEND), url + " assertEquals(url, c1.getServiceUrl(Service.BACKEND)); c1.setProperty(VulasConfiguration.getServiceUrlKey(Service.BACKEND), url + "/"); assertEquals(url, c1.getServiceUrl(Service.BACKEND)); c1.setProperty(VulasConfiguration.getServiceUrlKey(Service.BACKEND), url); assertEquals(url, c1.getServiceUrl(Service.BACKEND)); }