From 66506cb5e5de1ce9854e8ebd5de44de3a54ded0f Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Mon, 25 Jul 2022 11:26:11 +0200 Subject: [PATCH] Fixed tests root class --- .../resourceregistry/schema/ContextTest.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/test/java/org/gcube/informationsystem/resourceregistry/schema/ContextTest.java b/src/test/java/org/gcube/informationsystem/resourceregistry/schema/ContextTest.java index fc4800a..eb4b99f 100644 --- a/src/test/java/org/gcube/informationsystem/resourceregistry/schema/ContextTest.java +++ b/src/test/java/org/gcube/informationsystem/resourceregistry/schema/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); }