Transform Assume methods to Assumptions
MSALTransform Assume methods without a direct counterpart to equivalent assumptions in Assumptions.
org. openrewrite. java. testing. junit5. AssumeNotNullToAssumptionsRecipesmod run . --recipe= org. openrewrite. java. testing. junit5. AssumeNotNullToAssumptionsRecipesInstall 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.
- Transform single-argument
assumeNotNull(object)toassumeFalse(object == null) - Transform variadic
assumeNotNull(objects...)to a stream ofassumeFalse(object == null) - Transform
assumeNoException(throwable)toassumeTrue(throwable == null) - Transform
assumeNoException(message, throwable)toassumeTrue(throwable == null, message)