Created
February 8, 2017 13:29
-
-
Save fs111/1f19ba24a3ac3fa0eee36c4cfb97a653 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void testJMXURL() throws IOException { | |
String url = "service:jmx:rmi:///jndi/rmi://host.example.com:34517/jmxrmi"; | |
JMXServiceURL serviceURL = new JMXServiceURL(url); | |
assertEquals("host.example.com", serviceURL.getHost()); | |
assertEquals(34517, serviceURL.getPort()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment