Use JUnit Jupiter @TempDir
MSALTranslates JUnit 4's org.junit.rules.TemporaryFolder into JUnit 5's org.junit.jupiter.api.io.TempDir.
org. openrewrite. java. testing. junit5. TemporaryFolderToTempDirmod run . --recipe= org. openrewrite. java. testing. junit5. TemporaryFolderToTempDirInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.