File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
src/androidTest/java/okhttp/android/test Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -111,3 +111,9 @@ dependencies {
111111 androidTestImplementation(libs.junit5android.core)
112112 androidTestRuntimeOnly(libs.junit5android.runner)
113113}
114+
115+ junitPlatform {
116+ filters {
117+ excludeTags(" Remote" )
118+ }
119+ }
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import okhttp3.ConnectionPool
2323import okhttp3.OkHttpClient
2424import okhttp3.Request
2525import okhttp3.tls.internal.TlsUtil.localhost
26- import org.junit.Test
26+ import org.junit.jupiter.api. Test
2727
2828/* *
2929 * This single Junit 4 test is our Android test suite on API 21-25.
Original file line number Diff line number Diff line change @@ -27,16 +27,16 @@ import okhttp3.HttpUrl.Companion.toHttpUrl
2727import okhttp3.OkHttpClient
2828import okhttp3.Request
2929import okhttp3.internal.platform.Platform
30- import org.junit.After
31- import org.junit.Test
30+ import org.junit.jupiter.api.AfterEach
31+ import org.junit.jupiter.api. Test
3232import org.junit.jupiter.api.parallel.Isolated
3333
3434@Isolated
3535@SdkSuppress(minSdkVersion = 28 )
3636class StrictModeTest {
3737 private val violations = mutableListOf<Violation >()
3838
39- @After
39+ @AfterEach
4040 fun cleanup () {
4141 StrictMode .setThreadPolicy(
4242 ThreadPolicy
You can’t perform that action at this time.
0 commit comments