Migrate to MockWebServer3 with JUnit 4

MSAL

Migrate from the legacy mockwebserver artifact to mockwebserver3-junit4 with JUnit 4 integration.

org.openrewrite.okhttp.UpgradeMockWebServer3JUnit4
mod run . --recipe=org.openrewrite.okhttp.UpgradeMockWebServer3JUnit4

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change Gradle or Maven dependency com.squareup.okhttp3:mockwebserver
  2. Rename package name okhttp3.mockwebserver to mockwebserver3.junit4