Statically import JUnit Jupiter assertions

MSAL

Always use a static import for assertion methods.

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

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. Use static import org.junit.jupiter.api.Assertions *(..)