Skip to content

Upgrade JUnit 5.13.4 -> 6.0.0#1911

Merged
Stephan202 merged 4 commits intomasterfrom
renovate/junit-6.x
Oct 27, 2025
Merged

Upgrade JUnit 5.13.4 -> 6.0.0#1911
Stephan202 merged 4 commits intomasterfrom
renovate/junit-6.x

Conversation

@Picnic-DevPla-Bot
Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
JUnit (source) import major 5.13.4 -> 6.0.0

Release Notes

junit-team/junit-framework (JUnit)

v6.0.0: JUnit 6.0.0

JUnit 6.0.0 = Platform 6.0.0 + Jupiter 6.0.0 + Vintage 6.0.0

See Release Notes.

New Contributors

Full Changelog: junit-team/junit-framework@r5.14.0...r6.0.0

v5.14.0: JUnit 5.14.0

JUnit 5.14.0 = Platform 1.14.0 + Jupiter 5.14.0 + Vintage 5.14.0

See Release Notes.

Full Changelog: junit-team/junit-framework@r5.13.4...r5.14.0


  • If you want to rebase/retry this PR, check this box

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 7, 2025

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

2 similar comments
@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 7, 2025

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 7, 2025

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@Stephan202 Stephan202 added this to the 0.26.0 milestone Oct 11, 2025
@github-actions
Copy link
Copy Markdown

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link
Copy Markdown
Member

@Stephan202 Stephan202 left a comment

Choose a reason for hiding this comment

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

Rebased and added two commits. Suggested commit message:

Upgrade JUnit 5.13.4 -> 6.0.0 (#1911)

See:
- https://docs.junit.org/current/release-notes/
- https://github.com/junit-team/junit-framework/releases/tag/r6.0.0
- https://github.com/junit-team/junit-framework/releases/tag/r5.14.0
- https://github.com/junit-team/junit5/compare/r5.13.3...r6.0.0

"assertTimeoutPreemptively(Duration, ThrowingSupplier<T>)",
"assertTimeoutPreemptively(Duration, ThrowingSupplier<T>, String)",
"assertTimeoutPreemptively(Duration, ThrowingSupplier<T>, Supplier<String>)",
"assertTimeoutPreemptively(Duration, ThrowingSupplier<T>, Supplier<String>, TimeoutFailureFactory<E>)",
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.

This method was annotated @API(status = INTERNAL, since = "5.9.1") and got dropped.

Comment on lines 301 to 312
static final class AssertThatBooleanArrayWithFailMessageSupplierContainsExactly {
@BeforeTemplate
void before(boolean[] actual, Supplier<String> message, boolean[] expected) {
void before(boolean[] actual, Supplier<@Nullable String> message, boolean[] expected) {
assertArrayEquals(expected, actual, message);
}

@AfterTemplate
@UseImportPolicy(STATIC_IMPORT_ALWAYS)
void after(boolean[] actual, Supplier<String> message, boolean[] expected) {
void after(boolean[] actual, Supplier<@Nullable String> message, boolean[] expected) {
assertThat(actual).withFailMessage(message).containsExactly(expected);
}
}
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.

JUnit now explicitly allows message suppliers to yield null. I validated that AssertJ supports this a well, so I annotated the @AfterTemplate method parameter types as well.

@Stephan202
Copy link
Copy Markdown
Member

Ugh: fix one thing, then other stuff pops up. The Reviewdog errors are likely addressed by #1915. The SonarCloud warnings look like false positives; will look into the best way to suppress those.

@Picnic-DevPla-Bot
Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@github-actions
Copy link
Copy Markdown

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@Stephan202
Copy link
Copy Markdown
Member

I rebased and added one more commit to suppress the SonarCloud warnings.

@github-actions
Copy link
Copy Markdown

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@rickie rickie force-pushed the renovate/junit-6.x branch from 1135092 to a86cd9e Compare October 27, 2025 12:43
@github-actions
Copy link
Copy Markdown

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

@sonarqubecloud
Copy link
Copy Markdown

@Stephan202 Stephan202 merged commit fea3df8 into master Oct 27, 2025
19 checks passed
@Stephan202 Stephan202 deleted the renovate/junit-6.x branch October 27, 2025 13:10
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 16, 2025

Suggested commit message:

Upgrade JUnit 5 5.13.4 -> 6.0.0 (#1911)

See:
- https://docs.junit.org/6.0.0/release-notes/
- https://github.com/junit-team/junit-framework/releases/tag/r5.14.0-RC1
- https://github.com/junit-team/junit-framework/releases/tag/r5.14.0
- https://github.com/junit-team/junit-framework/releases/tag/r6.0.0-M1
- https://github.com/junit-team/junit-framework/releases/tag/r6.0.0-M2
- https://github.com/junit-team/junit-framework/releases/tag/r6.0.0-RC1
- https://github.com/junit-team/junit-framework/releases/tag/r6.0.0-RC2
- https://github.com/junit-team/junit-framework/releases/tag/r6.0.0-RC3
- https://github.com/junit-team/junit-framework/releases/tag/r6.0.0
- https://github.com/junit-team/junit-framework/compare/r5.13.4...r6.0.0

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

Development

Successfully merging this pull request may close these issues.

3 participants