Migrate System Rules system property rules to JUnit Pioneer annotations
MSALReplaces System Rules' ProvideSystemProperty, ClearSystemProperties and RestoreSystemProperties rules with JUnit Pioneer's @SetSystemProperty, @ClearSystemProperty and @RestoreSystemProperties class annotations, or with their JUnit Jupiter equivalents when JUnit Jupiter 6.1 or later is on the classpath. Only rules that take string literals and are not used elsewhere in the test are migrated; the others are left for the migration to System Stubs.
org. openrewrite. java. testing. junit5. SystemPropertyRulesToPioneermod run . --recipe= org. openrewrite. java. testing. junit5. SystemPropertyRulesToPioneerInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.