Simplify AssertJ chained assertions

MSAL

Many AssertJ chained assertions have dedicated assertions that function the same. It is best to use the dedicated assertions.

org.openrewrite.java.testing.assertj.SimplifyChainedAssertJAssertion

Optional

The chained AssertJ assertion to move to dedicated assertion.

The AssertJ assert that should be replaced.

The AssertJ method to migrate to.

The type of the actual assertion argument.

mod run . --recipe=org.openrewrite.java.testing.assertj.SimplifyChainedAssertJAssertion

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.