diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/queries/templates/ContextTest.java b/src/test/java/org/gcube/informationsystem/resourceregistry/queries/templates/ContextTest.java index 763957d..ba6b5f9 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/queries/templates/ContextTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/queries/templates/ContextTest.java @@ -69,17 +69,7 @@ public class ContextTest { throw new RuntimeException(e); } - - 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); + RESOURCE_REGISTRY_URL = properties.getProperty(RESOURCE_REGISTRY_URL_PROPERTY); }