Use JUnit Jupiter @TempDir

MSAL

Translates JUnit 4's org.junit.rules.TemporaryFolder into JUnit 5's org.junit.jupiter.api.io.TempDir.

org.openrewrite.java.testing.junit5.TemporaryFolderToTempDir
mod run . --recipe=org.openrewrite.java.testing.junit5.TemporaryFolderToTempDir

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.