Removed test case requiring online DNS name resolution
This commit is contained in:
parent
2176eb3861
commit
091c822edc
|
@ -26,17 +26,16 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.hc.client5.http;
|
package org.apache.hc.client5.http;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
import java.net.UnknownHostException;
|
import java.net.UnknownHostException;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
|
import org.junit.jupiter.api.Test;
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
||||||
|
|
||||||
public class SystemDefaultDnsResolverTest {
|
public class SystemDefaultDnsResolverTest {
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void resolve() throws UnknownHostException {
|
void resolve() throws UnknownHostException {
|
||||||
final SystemDefaultDnsResolver resolver = SystemDefaultDnsResolver.INSTANCE;
|
final SystemDefaultDnsResolver resolver = SystemDefaultDnsResolver.INSTANCE;
|
||||||
|
@ -56,12 +55,4 @@ public class SystemDefaultDnsResolverTest {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
void resolveCanonicalHostname() throws UnknownHostException {
|
|
||||||
final SystemDefaultDnsResolver resolver = SystemDefaultDnsResolver.INSTANCE;
|
|
||||||
|
|
||||||
final String result1 = resolver.resolveCanonicalHostname("example.com");
|
|
||||||
assertEquals("example.com", result1);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue