Use JUnit Jupiter Executable

MSAL

Migrates JUnit 4.x ThrowingRunnable to JUnit Jupiter Executable.

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

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 method name org.junit.function.ThrowingRunnable run() to execute
  2. Change type ThrowingRunnable to Executable