@Test public void testLocalhost() { DefaultHostsFileEntriesResolver resolver = new DefaultHostsFileEntriesResolver(); assertNotNull("localhost doesn't resolve", resolver.address("localhost")); assertNotNull("LOCALHOST doesn't resolve", resolver.address("LOCALHOST")); }
@Override public InetAddress address(String inetHost) { return entries.get(inetHost.toLowerCase(Locale.ENGLISH)); }
DefaultHostsFileEntriesResolver implements HostsFileEntriesResolver { @Override public InetAddress address(String inetHost) { return entries.get(inetHost.toLowerCase(Locale.ENGLISH)); } }
DefaultHostsFileEntriesResolver implements HostsFileEntriesResolver { @Override public InetAddress address(String inetHost) { return entries.get(inetHost.toLowerCase(Locale.ENGLISH)); }  }
DefaultHostsFileEntriesResolver implements HostsFileEntriesResolver { @Override public InetAddress address(String inetHost) { return entries.get(inetHost.toLowerCase(Locale.ENGLISH)); }  @Override InetAddress address(String inetHost); }
DefaultHostsFileEntriesResolver implements HostsFileEntriesResolver { @Override public InetAddress address(String inetHost) { return entries.get(inetHost.toLowerCase(Locale.ENGLISH)); }  @Override InetAddress address(String inetHost);  }