From: Ivan Dubrov Date: Thu, 18 Jun 2015 22:00:29 +0000 (-0700) Subject: Adding test to verify JMX could be loaded X-Git-Tag: light-jdk8u45+13~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=516d955f92609b47a024b90a6d5df701bb1d98b3;p=dcevm.git Adding test to verify JMX could be loaded --- diff --git a/dcevm/src/test/java7/com/github/dcevm/test/management/ManagementTest.java b/dcevm/src/test/java7/com/github/dcevm/test/management/ManagementTest.java new file mode 100644 index 00000000..f9489b70 --- /dev/null +++ b/dcevm/src/test/java7/com/github/dcevm/test/management/ManagementTest.java @@ -0,0 +1,16 @@ +package com.github.dcevm.test.management; + +import org.junit.Test; + +import java.lang.management.ManagementFactory; + +public class ManagementTest { + + @Test + public void testJMXIsFine() { + // https://github.com/dcevm/dcevm/issues/69 + // Verify management.dll could be loaded + ManagementFactory.getRuntimeMXBean(); + ManagementFactory.getPlatformMBeanServer(); + } +}