From 38376902fa6c1a6c4ee607b65e9dfb42d820771c Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Mon, 25 Jul 2022 11:21:54 +0200 Subject: [PATCH] Fixed tests root class --- .../resourceregistry/contexts/ContextTest.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/contexts/ContextTest.java b/src/test/java/org/gcube/informationsystem/resourceregistry/contexts/ContextTest.java index 622121a..a81be3c 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/contexts/ContextTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/contexts/ContextTest.java @@ -37,7 +37,6 @@ public class ContextTest { 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; @@ -69,18 +68,8 @@ public class ContextTest { 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); - } public static String getCurrentScope(String token) throws ObjectNotFound, Exception {