コード例 #1
0
 public MockInetSocketAddress(int port) {
   this(
       MockFramework.isEnabled()
           ? MockInetAddress.anyLocalAddress()
           : NetReflectionUtil.anyLocalAddress(),
       port);
 }
コード例 #2
0
 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;
   }
 }
コード例 #3
0
 public MockInetSocketAddress(InetAddress addr, int port) {
   super(
       addr == null
           ? (MockFramework.isEnabled()
               ? MockInetAddress.anyLocalAddress()
               : NetReflectionUtil.anyLocalAddress())
           : addr,
       port);
 }