public MockInetSocketAddress(int port) { this( MockFramework.isEnabled() ? MockInetAddress.anyLocalAddress() : NetReflectionUtil.anyLocalAddress(), port); }
private static InetAddress getResolvedAddressed(String hostname) { checkHost(hostname); try { return MockInetAddress.getByName(hostname); } catch (UnknownHostException e) { logger.warn("EvoSuite limitation: unsupported case of hostname resolution for " + hostname); return null; } }
public MockInetSocketAddress(InetAddress addr, int port) { super( addr == null ? (MockFramework.isEnabled() ? MockInetAddress.anyLocalAddress() : NetReflectionUtil.anyLocalAddress()) : addr, port); }