From 1408277fe91630b42b0d018abb553e6a4940d8e2 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Wed, 5 Apr 2023 10:49:02 +0200 Subject: [PATCH] Updated gcube boms as: --- .../common/utils/tests/GCubeTest.java | 39 ++++++++----------- pom.xml | 16 ++++---- 2 files changed, 25 insertions(+), 30 deletions(-) diff --git a/geoportal-common/src/main/java/org/gcube/application/geoportal/common/utils/tests/GCubeTest.java b/geoportal-common/src/main/java/org/gcube/application/geoportal/common/utils/tests/GCubeTest.java index d3b57ab..e6b51bf 100644 --- a/geoportal-common/src/main/java/org/gcube/application/geoportal/common/utils/tests/GCubeTest.java +++ b/geoportal-common/src/main/java/org/gcube/application/geoportal/common/utils/tests/GCubeTest.java @@ -2,33 +2,28 @@ package org.gcube.application.geoportal.common.utils.tests; public class GCubeTest { - public static String getContext() { - String testContext=null; - testContext = System.getProperty("testContext"); - if(testContext==null) { - // trying with env - testContext=System.getenv("testContext"); - } - + public static String getContext() { + String testContext = null; + testContext = System.getProperty("testContext"); + if (testContext == null) { + // trying with env + testContext = System.getenv("testContext"); + } // InterfaceConstants.SERVICE_CLASS="Application"; // InterfaceConstants.SERVICE_NAME="GeoPortal"; + testContext = "/pred4s/preprod/preVRE"; + testContext = "/pred4s/preprod/preVRE_ext"; + // testContext = "/d4science.research-infrastructures.eu/D4OS/GNA"; + // testContext= "/gcube/devsec/devVRE"; - testContext = "/pred4s/preprod/preVRE"; - testContext = "/pred4s/preprod/preVRE_ext"; - // testContext = "/d4science.research-infrastructures.eu/D4OS/GNA"; - // testContext= "/gcube/devsec/devVRE"; - - System.out.println("TEST CONTEXT = "+testContext); - return testContext; - } - - - - public static boolean isTestInfrastructureEnabled() { - return getContext()!=null; - } + System.out.println("TEST CONTEXT = " + testContext); + return testContext; + } + public static boolean isTestInfrastructureEnabled() { + return getContext() != null; + } } diff --git a/pom.xml b/pom.xml index db482aa..081da7e 100644 --- a/pom.xml +++ b/pom.xml @@ -23,16 +23,16 @@ https://code-repo.d4science.org/gCubeSystem - - - - + 2.3.0 + 2.4.0 + 3.7.0 + [1.0.0,2.0.0-SNAPSHOT) - 2.1.0-SNAPSHOT - 2.2.0-SNAPSHOT - 3.7.0-SNAPSHOT - [2.0.0-SNAPSHOT,3.0.0-SNAPSHOT) + + + + 1.0.3