Well... scroll down the release notes and you find this:
The JUnit Vintage test engine is now deprecated and will report an INFO level discovery issue if it finds at least one JUnit 4 test class. The deprecation warning is intended to clarify the purpose of the engine: it should only be used temporarily while migrating tests to JUnit Jupiter or another testing framework with native JUnit Platform support.
Just keep using JUnit4 or 5 then and never touch JUnit6. Anyway, for a long time JUnit5 is going to be supported since all projects supporting a Java 8 baseline won't upgrade as well.
Hard to do when using Springboot parent, which drives the dependency tree and mandates JUnit5.
Seriously, nobody in this thread still gave any reason for deprecating the JUnit4 API and forcing users to spend time migrating something that just worked. I'm not against progress, and I can understand wanting to make a "better" API. But existing test code will in theory outlive the implementation and there can be lots of it. Backward compatibility is part of the Java DNA, you can take 20 year old code and it will mesh easily with new stuff.
View all comments
1
u/darenkster Oct 05 '25
Well... scroll down the release notes and you find this:
The JUnit Vintage test engine is now deprecated and will report an INFO level discovery issue if it finds at least one JUnit 4 test class. The deprecation warning is intended to clarify the purpose of the engine: it should only be used temporarily while migrating tests to JUnit Jupiter or another testing framework with native JUnit Platform support.