Simplify AssertJ assertions with literal arguments
MSALSimplify AssertJ assertions by replacing them with more expressive dedicated assertions.
org. openrewrite. java. testing. assertj. SimplifyAssertJAssertionRequired
The literal argument passed into the assertion to replace; use "null" for null.
The zero argument assertion to adopt instead.
The type of the actual assertion argument.
Optional
The assertion method that should be replaced.
mod run . --recipe= org. openrewrite. java. testing. assertj. SimplifyAssertJAssertion \
-P literalArgument=0 \
-P dedicatedAssertion= isEmpty \
-P requiredType= java. lang. StringInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.