Skip to content

GH-3618: Upgrade JUnit4 to JUnit 5.14.4#3619

Open
nastra wants to merge 1 commit into
apache:masterfrom
nastra:junit5
Open

GH-3618: Upgrade JUnit4 to JUnit 5.14.4#3619
nastra wants to merge 1 commit into
apache:masterfrom
nastra:junit5

Conversation

@nastra

@nastra nastra commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

JUnit4 is outdated and the last release was in 2021. This switches to JUnit5 in order to make it possible to migrate the existing tests from JUnit4 to JUnit5 in the scope of #3618

What changes are included in this PR?

Are these changes tested?

existing tests

Are there any user-facing changes?

/cc @Fokko @wgtmac

Comment thread pom.xml
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the vintage engine runs JUnit4 tests while the jupiter engine runs JUnit5 tests. Having both dependencies allows for easier and gradual migrations of JUnit4 -> JUnit5 test code

Comment thread pom.xml
<ignoreNonCompile>true</ignoreNonCompile>
<ignoredDependencies>
<dependency>javax.annotation:javax.annotation-api:jar:1.3.2</dependency>
<dependency>junit:junit</dependency>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this now comes in transitively from junit-vintage-engine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant