From 36c4ea90a94cfa9acf332ed6eaee7babb5904ae4 Mon Sep 17 00:00:00 2001 From: lucafrosini Date: Wed, 7 Oct 2020 14:06:18 +0200 Subject: [PATCH] Fixed test --- .../handler/resourceregistry/HostingNodeManagerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/gcube/smartgears/handler/resourceregistry/HostingNodeManagerTest.java b/src/test/java/org/gcube/smartgears/handler/resourceregistry/HostingNodeManagerTest.java index 43e268b..a3f5cd9 100644 --- a/src/test/java/org/gcube/smartgears/handler/resourceregistry/HostingNodeManagerTest.java +++ b/src/test/java/org/gcube/smartgears/handler/resourceregistry/HostingNodeManagerTest.java @@ -1,7 +1,6 @@ package org.gcube.smartgears.handler.resourceregistry; import java.lang.management.ManagementFactory; -import java.lang.management.OperatingSystemMXBean; import javax.management.MBeanServer; import javax.management.ObjectName; @@ -32,7 +31,8 @@ public class HostingNodeManagerTest { Object free = mBeanServer.getAttribute(new ObjectName("java.lang","type","OperatingSystem"), "FreePhysicalMemorySize"); logger.debug("Free Memory : {}", free); - OperatingSystemMXBean mxbean = ManagementFactory.getOperatingSystemMXBean(); + /* Keep this code to performs checks + java.lang.management.OperatingSystemMXBean mxbean = ManagementFactory.getOperatingSystemMXBean(); @SuppressWarnings("restriction") com.sun.management.OperatingSystemMXBean sunmxbean = (com.sun.management.OperatingSystemMXBean) mxbean; @SuppressWarnings("restriction") @@ -41,7 +41,7 @@ public class HostingNodeManagerTest { long totalMemory = sunmxbean.getTotalPhysicalMemorySize(); logger.debug("freeMemory : {}", freeMemory); logger.debug("totalMemory : {}", totalMemory); - + */ } }