Domain name service. Prefer this over InetAddress#getAllByName to make code more testable.
| 23 | * make code more testable. |
| 24 | */ |
| 25 | public interface Dns { |
| 26 | Dns DEFAULT = new Dns() { |
| 27 | @Override public InetAddress[] getAllByName(String host) throws UnknownHostException { |
| 28 | return InetAddress.getAllByName(host); |
| 29 | } |
| 30 | }; |
| 31 | |
| 32 | InetAddress[] getAllByName(String host) throws UnknownHostException; |
| 33 | } |
no outgoing calls
no test coverage detected