@Test public void testGetPlatformHostPortConstructorFalse() { // uses hostAddress and port SystemHostPlatformSelector selector = new SystemHostPlatformSelector(false, 80); String platform = selector.getPlatformIdentifier(); Assert.assertEquals(address.getHostAddress() + ":80", platform); }
@Test public void testGetPlatformHostConstructorTrue() { // uses hostName SystemHostPlatformSelector selector = new SystemHostPlatformSelector(true); String platform = selector.getPlatformIdentifier(); Assert.assertEquals(address.getHostName(), platform); }