1
0
mirror of https://github.com/square/okhttp.git synced 2025-07-31 05:04:26 +03:00

Android Additional Tests (#6420)

This commit is contained in:
Yuri Schimke
2020-11-15 06:42:22 +00:00
committed by GitHub
parent 4adcb33d1b
commit ff959f8fd5
10 changed files with 44 additions and 11 deletions

View File

@ -15,7 +15,7 @@ dependencies {
testImplementation project(':okhttp-testing-support')
testImplementation project(':mockwebserver-deprecated')
testRuntimeOnly project(':mockwebserver-junit5')
testImplementation project(':mockwebserver-junit5')
testImplementation deps.conscrypt
testImplementation deps.junit
testImplementation deps.assertj

View File

@ -26,6 +26,7 @@ import java.util.concurrent.TimeUnit;
import mockwebserver3.MockResponse;
import mockwebserver3.MockWebServer;
import mockwebserver3.RecordedRequest;
import mockwebserver3.junit5.internal.MockWebServerExtension;
import okhttp3.Cache;
import okhttp3.Dns;
import okhttp3.HttpUrl;
@ -36,6 +37,7 @@ import okio.Buffer;
import okio.ByteString;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.api.extension.RegisterExtension;
import static java.util.Arrays.asList;
@ -43,6 +45,7 @@ import static java.util.Collections.singletonList;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.fail;
@ExtendWith(MockWebServerExtension.class)
public class DnsOverHttpsTest {
@RegisterExtension public final PlatformRule platform = new PlatformRule();