spring-boot icon indicating copy to clipboard operation
spring-boot copied to clipboard

Remove mentions of JUnit 4 from javadoc and reference documentation

Open wilkinsona opened this issue 4 months ago • 5 comments

Spring Framework 7 has deprecated support for JUnit 4 and will remove it in 7.1 or 7.2. Aligned with this, we should consider what we want to do and when. For example, our javadoc mentions JUnit 4 in a number of places such as:

https://github.com/spring-projects/spring-boot/blob/96afc3f944f0dd25d54f0a339ee2a5760ccfddf0/module/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/orm/jpa/DataJpaTest.java#L66-L67

This is common across many (all?) of our test slice annotations. Should we remove this and similar now or wait until support's completely removed from Framework?

wilkinsona avatar Sep 16 '25 08:09 wilkinsona

See also #47256

snicoll avatar Sep 19 '25 13:09 snicoll

I thought we'd decided to leave this in place for 4.0 (hence the milestone remaining 4.x). https://github.com/spring-projects/spring-boot/issues/47256 was created for the things that we wanted to do in 4.0.

wilkinsona avatar Sep 19 '25 14:09 wilkinsona

Sorry, I think I have a recollection of that now that you mention it.

snicoll avatar Sep 19 '25 15:09 snicoll

Closing in favor of PR #48257. Thanks @ramzeta!

philwebb avatar Nov 24 '25 03:11 philwebb

The work has already been done (and reverted). Sorry, I should have assigned myself.

snicoll avatar Nov 24 '25 07:11 snicoll