maven-wrapper icon indicating copy to clipboard operation
maven-wrapper copied to clipboard

Switch to JUnit Jupiter

Open timtebeek opened this issue 3 years ago • 3 comments

Via mvn -U org.openrewrite.maven:rewrite-maven-plugin:4.32.0:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-testing-frameworks:1.26.1 -DactiveRecipes=org.openrewrite.java.testing.junit5.JUnit5BestPractices

timtebeek avatar Aug 24 '22 18:08 timtebeek

This project uses Java 7, so I expect that this will not be compatible.

jorsol avatar Aug 24 '22 18:08 jorsol

This project uses Java 7, so I expect that this will not be compatible.

Ah hadn't thought of that; you're right.

JUnit 5 requires Java 8 (or higher) at runtime. However, you can still test code that has been compiled with previous versions of the JDK.

Unless we want to bring in toolchains to test on a different Java version, I guess this is blocked for now.

timtebeek avatar Aug 24 '22 18:08 timtebeek

Good suggestion; applied just now, although it's not immediately clear to me whether this has any chance of getting merged (soon-ish), and/or what would be required to get it in a mergeable state.

timtebeek avatar Aug 24 '22 20:08 timtebeek

@timtebeek it is now Java 8 -- would you like to change it back?

bmarwell avatar Dec 22 '22 14:12 bmarwell

Yes I'd love to see this through, but will be traveling until early January. Welcome to push the required changes already, or recreate using the Maven plugin for OpenRewrite. Otherwise I'll pick this up as soon as I get back.

On Thu, Dec 22, 2022, 11:54 Benjamin Marwell @.***> wrote:

@timtebeek https://github.com/timtebeek it is now Java 8 -- would you like to change it back?

— Reply to this email directly, view it on GitHub https://github.com/apache/maven-wrapper/pull/61#issuecomment-1362934686, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH22BUX53QWIZRQXNNY7DLWORTUDANCNFSM57QJ6HTQ . You are receiving this because you were mentioned.Message ID: @.***>

timtebeek avatar Dec 24 '22 16:12 timtebeek

@bmarwell suggestions applied, and further fixes to reduce visibility and convert the new HashAlgorithmVerifierTest. Ready for review! :)

timtebeek avatar Jan 02 '23 10:01 timtebeek

@bmarwell recreated this one as well, as discussed; again mostly automated, with spotless apply committed separately from the OpenRewrite automation. Glad to see spotless added here. :) Ready for review & merge.

timtebeek avatar Jan 06 '23 11:01 timtebeek

Resolved the conflicts just now; should be ready for a merge!

timtebeek avatar Jan 07 '23 19:01 timtebeek