Upgrade to Mockito 5.x

MSAL

Upgrade Mockito from 1.x to 5.x.

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

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. Upgrade to Mockito 4.x
  2. Mockito 4 to 5.x upgrade only