@Test public void getLocalhost_returns_InetAddress_of_localhost() throws Exception { assertThat(NetworkUtils.getLocalhost()).isEqualTo(InetAddress.getLocalHost()); }
public static InetAddress getLocalhost() { try { return InetAddress.getLocalHost(); } catch (UnknownHostException e) { throw new IllegalStateException("Fail to get localhost IP", e); } }
NetworkUtils { public static InetAddress getLocalhost() { try { return InetAddress.getLocalHost(); } catch (UnknownHostException e) { throw new IllegalStateException("Fail to get localhost IP", e); } } }
NetworkUtils { public static InetAddress getLocalhost() { try { return InetAddress.getLocalHost(); } catch (UnknownHostException e) { throw new IllegalStateException("Fail to get localhost IP", e); } } private  NetworkUtils(); }
NetworkUtils { public static InetAddress getLocalhost() { try { return InetAddress.getLocalHost(); } catch (UnknownHostException e) { throw new IllegalStateException("Fail to get localhost IP", e); } } private  NetworkUtils(); static InetAddress getLocalhost(); static InetAddress getInetAddressByName(String name); static int getNextAvailablePort(InetAddress address); }
NetworkUtils { public static InetAddress getLocalhost() { try { return InetAddress.getLocalHost(); } catch (UnknownHostException e) { throw new IllegalStateException("Fail to get localhost IP", e); } } private  NetworkUtils(); static InetAddress getLocalhost(); static InetAddress getInetAddressByName(String name); static int getNextAvailablePort(InetAddress address);  }