Migrate from EasyMock to Mockito

MSAL

Applies changes commonly needed when migrating from EasyMock to Mockito.

org.openrewrite.java.testing.easymock.EasyMockToMockito
mod run . --recipe=org.openrewrite.java.testing.easymock.EasyMockToMockito

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 org.mockito:mockito-core:5.x
  2. Remove a Gradle or Maven dependency org.easymock:easymock
  3. Migrate EasyMock code to Mockito
  4. Mockito best practices