Use wiremock extension

MSAL

As of 2.31.0, wiremock supports JUnit 5 via an extension.

org.openrewrite.java.testing.junit5.UseWiremockExtension
mod run . --recipe=org.openrewrite.java.testing.junit5.UseWiremockExtension

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 type WireMockRule to WireMockExtension