Simplify AssertJ chained assertions
MSALMany AssertJ chained assertions have dedicated assertions that function the same. It is best to use the dedicated assertions.
org. openrewrite. java. testing. assertj. SimplifyChainedAssertJAssertionOptional
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. SimplifyChainedAssertJAssertionInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.