Statically import AssertJ's assertThat

MSAL

Consistently use a static import rather than inlining the Assertions class name in tests.

org.openrewrite.java.testing.assertj.StaticImports
mod run . --recipe=org.openrewrite.java.testing.assertj.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. Change method target to static
  2. Use static import org.assertj.core.api.Assertions *(..)