Skip to content

Upgrade tests to use Junit5 - #3312

Merged
olamy merged 16 commits into
apache:masterfrom
olamy:master-junit-5
Mar 11, 2026
Merged

olamy merged 16 commits into
apache:masterfrom
olamy:master-junit-5

Conversation

@olamy

@olamy olamy commented Mar 8, 2026 •

Copy link
Copy Markdown
Member
  • Migrate all tests to Junit5

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean install to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.
  • You have run the integration tests successfully (mvn -Prun-its clean install).

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

@olamy olamy changed the title Upgrade tests to use Junit5 [WIP] Upgrade tests to use Junit5 Mar 8, 2026
olamy added 6 commits March 8, 2026 20:57
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Comment thread surefire-extensions-api/pom.xml Resolved
@slawekjaranowski

Copy link
Copy Markdown
Member

I hope that it can be splitted by small changes, like remove powermock, or by module πŸ˜„

But we can also work as is only review will be more complicated

olamy added 7 commits March 9, 2026 09:57
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Olivier Lamy <olamy@apache.org>
@olamy olamy added this to the 3.6.0.M1 milestone Mar 10, 2026
@olamy olamy changed the title [WIP] Upgrade tests to use Junit5 Upgrade tests to use Junit5 Mar 10, 2026
@olamy
olamy marked this pull request as ready for review March 10, 2026 07:04
@olamy
olamy requested a review from slawekjaranowski March 10, 2026 07:04
public class RunEntryStatisticsMapTest {

@SuppressWarnings("unchecked")
private static <T> T getInternalState(Object target, String fieldName) {

@slawekjaranowski slawekjaranowski Mar 10, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe some test util in project?

Comment thread maven-surefire-common/pom.xml Resolved
Comment thread maven-surefire-plugin/pom.xml Resolved
Comment thread maven-surefire-report-plugin/pom.xml Resolved
Comment thread surefire-api/pom.xml Resolved
@slawekjaranowski

Copy link
Copy Markdown
Member

great job, do we need a junit-jupiter-engine in dependencies?

Signed-off-by: Olivier Lamy <olamy@apache.org>
@olamy

olamy commented Mar 11, 2026

Copy link
Copy Markdown
Member Author

great job, do we need a junit-jupiter-engine in dependencies?

we definitely do not need it. bad copy/paste
fixed now

<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

πŸ˜„

@slawekjaranowski

Copy link
Copy Markdown
Member

great job, do we need a junit-jupiter-engine in dependencies?

we definitely do not need it. bad copy/paste fixed now

still see it πŸ˜„

Signed-off-by: Olivier Lamy <olamy@apache.org>
@olamy

olamy commented Mar 11, 2026

Copy link
Copy Markdown
Member Author

great job, do we need a junit-jupiter-engine in dependencies?

good catch. bad copy-paste. Fixed now.

great job, do we need a junit-jupiter-engine in dependencies?

we definitely do not need it. bad copy/paste fixed now

still see it πŸ˜„

grhhh :)
fixed

<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

πŸ˜„

Comment on lines +46 to +47
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

πŸ˜„

@olamy
olamy merged commit 41ce753 into apache:master Mar 11, 2026
14 checks passed
@olamy
olamy deleted the master-junit-5 branch March 11, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants