Migrate JUnit Pioneer extensions to native JUnit Jupiter equivalents

MSAL

Migrates @DefaultLocale, @DefaultTimeZone, @SetSystemProperty, @ClearSystemProperty, @RestoreSystemProperties (and their @Reads.../@Writes... companions) from JUnit Pioneer to the native equivalents added in JUnit Jupiter 6.1. The junit-pioneer dependency is not removed since other Pioneer features (e.g. @RetryingTest, @CartesianTest) have no Jupiter equivalent.

org.openrewrite.java.testing.junit6.MigrateJUnitPioneerToJupiter
mod run . --recipe=org.openrewrite.java.testing.junit6.MigrateJUnitPioneerToJupiter

Install 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.

  1. Change type org.junitpioneer.jupiter.DefaultLocale to org.junit.jupiter.api.util.DefaultLocale
  2. Change type org.junitpioneer.jupiter.DefaultTimeZone to org.junit.jupiter.api.util.DefaultTimeZone
  3. Change type org.junitpioneer.jupiter.SetSystemProperty to org.junit.jupiter.api.util.SetSystemProperty
  4. Change type org.junitpioneer.jupiter.ClearSystemProperty to org.junit.jupiter.api.util.ClearSystemProperty
  5. Change type org.junitpioneer.jupiter.RestoreSystemProperties to org.junit.jupiter.api.util.RestoreSystemProperties
  6. Change type org.junitpioneer.jupiter.ReadsSystemProperty to org.junit.jupiter.api.util.ReadsSystemProperty
  7. Change type org.junitpioneer.jupiter.WritesSystemProperty to org.junit.jupiter.api.util.WritesSystemProperty
  8. Change type org.junitpioneer.jupiter.ReadsDefaultLocale to org.junit.jupiter.api.util.ReadsDefaultLocale
  9. Change type org.junitpioneer.jupiter.WritesDefaultLocale to org.junit.jupiter.api.util.WritesDefaultLocale
  10. Change type org.junitpioneer.jupiter.ReadsDefaultTimeZone to org.junit.jupiter.api.util.ReadsDefaultTimeZone
  11. Change type org.junitpioneer.jupiter.WritesDefaultTimeZone to org.junit.jupiter.api.util.WritesDefaultTimeZone