Add JUnit 4 where the PowerMock JUnit 4 module provided it

MSAL

Adds junit:junit to modules that use JUnit 4 and depend on powermock-module-junit4, which brings JUnit 4 in transitively, so that their tests still compile once the PowerMock dependencies are removed. A module that declares junit:junit itself is left as it is.

org.openrewrite.java.testing.mockito.AddJUnit4ReplacingPowerMockModule
mod run . --recipe=org.openrewrite.java.testing.mockito.AddJUnit4ReplacingPowerMockModule

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. Add Gradle or Maven dependency junit:junit:4.13.2