Fixed tests root class

This commit is contained in:
Luca Frosini 2022-07-25 11:21:27 +02:00
parent 85ed707f44
commit 836d66bec4
1 changed files with 1 additions and 12 deletions

View File

@ -37,7 +37,6 @@ public class ContextTest {
public static final String DEFAULT_TEST_SCOPE_ANOTHER_USER; public static final String DEFAULT_TEST_SCOPE_ANOTHER_USER;
protected static final String REGISTRY_PROPERTIES_FILENAME = "registry.properties";
public static final String RESOURCE_REGISTRY_URL_PROPERTY = "RESOURCE_REGISTRY_URL"; public static final String RESOURCE_REGISTRY_URL_PROPERTY = "RESOURCE_REGISTRY_URL";
public static final String RESOURCE_REGISTRY_URL; public static final String RESOURCE_REGISTRY_URL;
@ -69,17 +68,7 @@ public class ContextTest {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
RESOURCE_REGISTRY_URL = properties.getProperty(RESOURCE_REGISTRY_URL_PROPERTY);
Properties registryProperties = new Properties();
input = ContextTest.class.getClassLoader().getResourceAsStream(REGISTRY_PROPERTIES_FILENAME);
try {
// load the properties file
registryProperties.load(input);
} catch (IOException e) {
throw new RuntimeException(e);
}
RESOURCE_REGISTRY_URL = registryProperties.getProperty(RESOURCE_REGISTRY_URL_PROPERTY);
} }