spring-projects / spring-projects/spring-boot

Remove mentions of JUnit 4 from javadoc and reference documentation

Open
#47,228 5 comments 0 reactions 1 assignee View on GitHub

@snicoll is already working on this.

Since Nov 24, 2025.

type: documentation
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.