Removed test case requiring online DNS name resolution

This commit is contained in:
Oleg Kalnichevski 2023-06-05 18:28:12 +02:00
parent 2176eb3861
commit 091c822edc
1 changed files with 3 additions and 12 deletions

View File

@ -26,17 +26,16 @@
*/
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.UnknownHostException;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
public class SystemDefaultDnsResolverTest {
@Test
void resolve() throws UnknownHostException {
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);
}
}