Refactor RewriteTest to use defaults method
MSALWhen all rewriteRun methods in a test class use the same RecipeSpec configuration, refactor to use the defaults method instead. When the class already has a defaults method, remove a test's spec.recipe(..) when defaults already sets that same recipe.
org. openrewrite. java. recipes. UseRewriteTestDefaultsmod run . --recipe= org. openrewrite. java. recipes. UseRewriteTestDefaultsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.