Skip to content

Validate argument count for field injection #5079#5088

Merged
marcphilipp merged 6 commits into
junit-team:mainfrom
jihun4452:fix/parameterizedclass-field-validation
Oct 27, 2025
Merged

Validate argument count for field injection #5079#5088
marcphilipp merged 6 commits into
junit-team:mainfrom
jihun4452:fix/parameterizedclass-field-validation

Conversation

@jihun4452

Copy link
Copy Markdown
Contributor

Closes #5079

Summary

This PR adds validation for the number of provided arguments when using field injection with @ParameterizedClass.
Previously, insufficient arguments caused an ArrayIndexOutOfBoundsException with an unclear error message.
Now, a ParameterResolutionException is thrown with a clear and descriptive message.

Changes

  • Added validation logic in assertEnoughArgumentsForFieldInjection() to check argument count before field injection
  • Throws ParameterResolutionException when insufficient arguments are provided
  • Error message now includes:
    • The field name, parameter index, and type
    • The number of arguments provided vs. required
  • Added helper methods:
    • requiredArgumentCountForParameterFields() — computes the required argument count
    • firstMissingParameterFieldByIndex() — identifies the first missing field
  • Added integration test failsWithMeaningfulErrorWhenTooFewArgumentsProvidedForFieldInjection() to verify error message clarity

Implementation Notes

  • Added @SuppressWarnings("NullAway") for the ternary expression handling arguments.get(), which can return a @Nullable Object[]. The null case is safely handled, but NullAway's static analysis cannot infer this guarantee
  • Added null checks in helper methods to handle edge cases where fields may not have @Parameter annotations

Example

Before:

ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1

After:

ParameterResolutionException: Not enough arguments for @ParameterizedClass field injection in NotEnoughArgumentsForFieldsTestCase: field 's' (index 1, type java.lang.String) cannot be injected because only 1 argument(s) were provided; at least 2 are required.

I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

  • There are no TODOs left in the code
  • Method preconditions are checked and documented in the method's Javadoc (N/A — private methods)
  • Coding conventions (e.g., for logging) have been followed
  • Change is covered by automated tests including corner cases, errors, and exception handling
  • Public API has Javadoc and @API annotations (N/A — internal implementation only)
  • Change is documented in the User Guide and Release Notes (will add if requested by maintainers)

@marcphilipp marcphilipp left a comment

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.

Thanks for the quick turnaround! I think it would be simpler to implement this in ResolverFacade.Converter#resolve(FieldContext, ExtensionContext, EvaluatedArgumentSet, int). Could you please give that a try?

@jihun4452

Copy link
Copy Markdown
Contributor Author

Thanks for the review! I’ll try implementing it in ResolverFacade.Converter#resolve as you suggested.

@jihun4452

Copy link
Copy Markdown
Contributor Author

Hi @marcphilipp,

I’ve made some changes based on your feedback.
The argument validation is now handled inside ResolverFacade.Converter#resolve(FieldContext, …),
so each field performs validation during resolution.
I moved the validation logic there so that it runs naturally as part of field resolution.

I’ve run the related tests, and they pass as expected.
Could you please check if this approach matches what you had in mind?
Please let me know if you’d prefer a different approach.

@marcphilipp marcphilipp merged commit c99fba6 into junit-team:main Oct 27, 2025
16 checks passed
@marcphilipp

Copy link
Copy Markdown
Member

Thank you for your contribution, @jihun4452! 👍

I took a closer look and decided to move the validation to ArgumentCountValidator for consistency with other related checks.

@jihun4452

Copy link
Copy Markdown
Contributor Author

@marcphilipp
Thanks for the merge and clear explanation!
Moving the validation to ArgumentCountValidator makes perfect sense for consistency.
I really appreciate the well-organized and thoughtful refactor, and I’ve learned a lot from this contribution. 🙏

@sbrannen sbrannen changed the title fix: Validate argument count for field injection #5079 Validate argument count for field injection #5079 Oct 29, 2025
mergify Bot added a commit to ArcadeData/arcadedb that referenced this pull request May 24, 2026
Bumps `junit.jupiter.version` from 6.0.3 to 6.1.0.
Updates `org.junit:junit-bom` from 6.0.3 to 6.1.0
Release notes

*Sourced from [org.junit:junit-bom's releases](https://github.com/junit-team/junit-framework/releases).*

> JUnit 6.1.0 = Platform 6.1.0 + Jupiter 6.1.0 + Vintage 6.1.0
>
> See [Release Notes](https://docs.junit.org/6.1.0/release-notes.html).
>
> New Contributors
> ----------------
>
> * [`@​JarvisCraft`](https://github.com/JarvisCraft) made their first contribution in [junit-team/junit-framework#5633](https://redirect.github.com/junit-team/junit-framework/pull/5633)
> * [`@​Maran23`](https://github.com/Maran23) made their first contribution in [junit-team/junit-framework#5644](https://redirect.github.com/junit-team/junit-framework/pull/5644)
>
> **Full Changelog**: <junit-team/junit-framework@r6.0.3...r6.1.0>
>
> JUnit 6.1.0-RC1 = Platform 6.1.0-RC1 + Jupiter 6.1.0-RC1 + Vintage 6.1.0-RC1
>
> See [Release Notes](https://docs.junit.org/6.1.0-RC1/release-notes/).
>
> New Contributors
> ----------------
>
> * [`@​mariokhoury4`](https://github.com/mariokhoury4) made their first contribution in [junit-team/junit-framework#4574](https://redirect.github.com/junit-team/junit-framework/pull/4574)
> * [`@​Ogu1208`](https://github.com/Ogu1208) made their first contribution in [junit-team/junit-framework#5145](https://redirect.github.com/junit-team/junit-framework/pull/5145)
> * [`@​HyungGeun94`](https://github.com/HyungGeun94) made their first contribution in [junit-team/junit-framework#5271](https://redirect.github.com/junit-team/junit-framework/pull/5271)
> * [`@​yalishevant`](https://github.com/yalishevant) made their first contribution in [junit-team/junit-framework#5316](https://redirect.github.com/junit-team/junit-framework/pull/5316)
> * [`@​JINU-CHANG`](https://github.com/JINU-CHANG) made their first contribution in [junit-team/junit-framework#5290](https://redirect.github.com/junit-team/junit-framework/pull/5290)
> * [`@​jaschdoc`](https://github.com/jaschdoc) made their first contribution in [junit-team/junit-framework#5427](https://redirect.github.com/junit-team/junit-framework/pull/5427)
> * [`@​kawshikbuet17`](https://github.com/kawshikbuet17) made their first contribution in [junit-team/junit-framework#5561](https://redirect.github.com/junit-team/junit-framework/pull/5561)
> * [`@​msridhar`](https://github.com/msridhar) made their first contribution in [junit-team/junit-framework#5602](https://redirect.github.com/junit-team/junit-framework/pull/5602)
>
> **Full Changelog**: <junit-team/junit-framework@r6.1.0-M1...r6.1.0-RC1>
>
> JUnit 6.1.0-M1 = Platform 6.1.0-M1 + Jupiter 6.1.0-M1 + Vintage 6.1.0-M1
>
> See [Release Notes](https://docs.junit.org/6.1.0-M1/release-notes/).
>
> New Contributors
> ----------------
>
> * [`@​vy`](https://github.com/vy) made their first contribution in [junit-team/junit-framework#5041](https://redirect.github.com/junit-team/junit-framework/pull/5041)
> * [`@​Pankraz76`](https://github.com/Pankraz76) made their first contribution in [junit-team/junit-framework#5006](https://redirect.github.com/junit-team/junit-framework/pull/5006)
> * [`@​arukiidou`](https://github.com/arukiidou) made their first contribution in [junit-team/junit-framework#5066](https://redirect.github.com/junit-team/junit-framework/pull/5066)
> * [`@​laeubi`](https://github.com/laeubi) made their first contribution in [junit-team/junit-framework#5092](https://redirect.github.com/junit-team/junit-framework/pull/5092)
> * [`@​jihun4452`](https://github.com/jihun4452) made their first contribution in [junit-team/junit-framework#5088](https://redirect.github.com/junit-team/junit-framework/pull/5088)
> * [`@​TWiStErRob`](https://github.com/TWiStErRob) made their first contribution in [junit-team/junit-framework#5133](https://redirect.github.com/junit-team/junit-framework/pull/5133)
>
> **Full Changelog**: <junit-team/junit-framework@r6.0.0...r6.1.0-M1>


Commits

* [`0dc3af1`](junit-team/junit-framework@0dc3af1) Release 6.1.0
* [`1d13002`](junit-team/junit-framework@1d13002) Prepare 6.1.0 release notes
* [`072b217`](junit-team/junit-framework@072b217) Update plugin spotless to v8.5.0 ([#5668](https://redirect.github.com/junit-team/junit-framework/issues/5668))
* [`3a53480`](junit-team/junit-framework@3a53480) Update Gradle to v9.5.1 ([#5666](https://redirect.github.com/junit-team/junit-framework/issues/5666))
* [`0e18a20`](junit-team/junit-framework@0e18a20) Update zizmorcore/zizmor-action action to v0.5.4 ([#5669](https://redirect.github.com/junit-team/junit-framework/issues/5669))
* [`0a2634f`](junit-team/junit-framework@0a2634f) Update github/codeql-action action to v4.35.5 ([#5671](https://redirect.github.com/junit-team/junit-framework/issues/5671))
* [`4dbd556`](junit-team/junit-framework@4dbd556) Restructure workflows to have single "status" job ([#5670](https://redirect.github.com/junit-team/junit-framework/issues/5670))
* [`f2194ce`](junit-team/junit-framework@f2194ce) Increase timeout to reduce flakiness
* [`5c8fdd2`](junit-team/junit-framework@5c8fdd2) Update dependency org.apache.groovy:groovy to v5.0.6 ([#5659](https://redirect.github.com/junit-team/junit-framework/issues/5659))
* [`43c6982`](junit-team/junit-framework@43c6982) Update dependency org.slf4j:slf4j-jdk14 to v2.0.18 ([#5667](https://redirect.github.com/junit-team/junit-framework/issues/5667))
* Additional commits viewable in [compare view](junit-team/junit-framework@r6.0.3...r6.1.0)
  
Updates `org.junit.jupiter:junit-jupiter` from 6.0.3 to 6.1.0
Release notes

*Sourced from [org.junit.jupiter:junit-jupiter's releases](https://github.com/junit-team/junit-framework/releases).*

> JUnit 6.1.0 = Platform 6.1.0 + Jupiter 6.1.0 + Vintage 6.1.0
>
> See [Release Notes](https://docs.junit.org/6.1.0/release-notes.html).
>
> New Contributors
> ----------------
>
> * [`@​JarvisCraft`](https://github.com/JarvisCraft) made their first contribution in [junit-team/junit-framework#5633](https://redirect.github.com/junit-team/junit-framework/pull/5633)
> * [`@​Maran23`](https://github.com/Maran23) made their first contribution in [junit-team/junit-framework#5644](https://redirect.github.com/junit-team/junit-framework/pull/5644)
>
> **Full Changelog**: <junit-team/junit-framework@r6.0.3...r6.1.0>
>
> JUnit 6.1.0-RC1 = Platform 6.1.0-RC1 + Jupiter 6.1.0-RC1 + Vintage 6.1.0-RC1
>
> See [Release Notes](https://docs.junit.org/6.1.0-RC1/release-notes/).
>
> New Contributors
> ----------------
>
> * [`@​mariokhoury4`](https://github.com/mariokhoury4) made their first contribution in [junit-team/junit-framework#4574](https://redirect.github.com/junit-team/junit-framework/pull/4574)
> * [`@​Ogu1208`](https://github.com/Ogu1208) made their first contribution in [junit-team/junit-framework#5145](https://redirect.github.com/junit-team/junit-framework/pull/5145)
> * [`@​HyungGeun94`](https://github.com/HyungGeun94) made their first contribution in [junit-team/junit-framework#5271](https://redirect.github.com/junit-team/junit-framework/pull/5271)
> * [`@​yalishevant`](https://github.com/yalishevant) made their first contribution in [junit-team/junit-framework#5316](https://redirect.github.com/junit-team/junit-framework/pull/5316)
> * [`@​JINU-CHANG`](https://github.com/JINU-CHANG) made their first contribution in [junit-team/junit-framework#5290](https://redirect.github.com/junit-team/junit-framework/pull/5290)
> * [`@​jaschdoc`](https://github.com/jaschdoc) made their first contribution in [junit-team/junit-framework#5427](https://redirect.github.com/junit-team/junit-framework/pull/5427)
> * [`@​kawshikbuet17`](https://github.com/kawshikbuet17) made their first contribution in [junit-team/junit-framework#5561](https://redirect.github.com/junit-team/junit-framework/pull/5561)
> * [`@​msridhar`](https://github.com/msridhar) made their first contribution in [junit-team/junit-framework#5602](https://redirect.github.com/junit-team/junit-framework/pull/5602)
>
> **Full Changelog**: <junit-team/junit-framework@r6.1.0-M1...r6.1.0-RC1>
>
> JUnit 6.1.0-M1 = Platform 6.1.0-M1 + Jupiter 6.1.0-M1 + Vintage 6.1.0-M1
>
> See [Release Notes](https://docs.junit.org/6.1.0-M1/release-notes/).
>
> New Contributors
> ----------------
>
> * [`@​vy`](https://github.com/vy) made their first contribution in [junit-team/junit-framework#5041](https://redirect.github.com/junit-team/junit-framework/pull/5041)
> * [`@​Pankraz76`](https://github.com/Pankraz76) made their first contribution in [junit-team/junit-framework#5006](https://redirect.github.com/junit-team/junit-framework/pull/5006)
> * [`@​arukiidou`](https://github.com/arukiidou) made their first contribution in [junit-team/junit-framework#5066](https://redirect.github.com/junit-team/junit-framework/pull/5066)
> * [`@​laeubi`](https://github.com/laeubi) made their first contribution in [junit-team/junit-framework#5092](https://redirect.github.com/junit-team/junit-framework/pull/5092)
> * [`@​jihun4452`](https://github.com/jihun4452) made their first contribution in [junit-team/junit-framework#5088](https://redirect.github.com/junit-team/junit-framework/pull/5088)
> * [`@​TWiStErRob`](https://github.com/TWiStErRob) made their first contribution in [junit-team/junit-framework#5133](https://redirect.github.com/junit-team/junit-framework/pull/5133)
>
> **Full Changelog**: <junit-team/junit-framework@r6.0.0...r6.1.0-M1>


Commits

* [`0dc3af1`](junit-team/junit-framework@0dc3af1) Release 6.1.0
* [`1d13002`](junit-team/junit-framework@1d13002) Prepare 6.1.0 release notes
* [`072b217`](junit-team/junit-framework@072b217) Update plugin spotless to v8.5.0 ([#5668](https://redirect.github.com/junit-team/junit-framework/issues/5668))
* [`3a53480`](junit-team/junit-framework@3a53480) Update Gradle to v9.5.1 ([#5666](https://redirect.github.com/junit-team/junit-framework/issues/5666))
* [`0e18a20`](junit-team/junit-framework@0e18a20) Update zizmorcore/zizmor-action action to v0.5.4 ([#5669](https://redirect.github.com/junit-team/junit-framework/issues/5669))
* [`0a2634f`](junit-team/junit-framework@0a2634f) Update github/codeql-action action to v4.35.5 ([#5671](https://redirect.github.com/junit-team/junit-framework/issues/5671))
* [`4dbd556`](junit-team/junit-framework@4dbd556) Restructure workflows to have single "status" job ([#5670](https://redirect.github.com/junit-team/junit-framework/issues/5670))
* [`f2194ce`](junit-team/junit-framework@f2194ce) Increase timeout to reduce flakiness
* [`5c8fdd2`](junit-team/junit-framework@5c8fdd2) Update dependency org.apache.groovy:groovy to v5.0.6 ([#5659](https://redirect.github.com/junit-team/junit-framework/issues/5659))
* [`43c6982`](junit-team/junit-framework@43c6982) Update dependency org.slf4j:slf4j-jdk14 to v2.0.18 ([#5667](https://redirect.github.com/junit-team/junit-framework/issues/5667))
* Additional commits viewable in [compare view](junit-team/junit-framework@r6.0.3...r6.1.0)
  
Updates `org.junit.vintage:junit-vintage-engine` from 6.0.3 to 6.1.0
Release notes

*Sourced from [org.junit.vintage:junit-vintage-engine's releases](https://github.com/junit-team/junit-framework/releases).*

> JUnit 6.1.0 = Platform 6.1.0 + Jupiter 6.1.0 + Vintage 6.1.0
>
> See [Release Notes](https://docs.junit.org/6.1.0/release-notes.html).
>
> New Contributors
> ----------------
>
> * [`@​JarvisCraft`](https://github.com/JarvisCraft) made their first contribution in [junit-team/junit-framework#5633](https://redirect.github.com/junit-team/junit-framework/pull/5633)
> * [`@​Maran23`](https://github.com/Maran23) made their first contribution in [junit-team/junit-framework#5644](https://redirect.github.com/junit-team/junit-framework/pull/5644)
>
> **Full Changelog**: <junit-team/junit-framework@r6.0.3...r6.1.0>
>
> JUnit 6.1.0-RC1 = Platform 6.1.0-RC1 + Jupiter 6.1.0-RC1 + Vintage 6.1.0-RC1
>
> See [Release Notes](https://docs.junit.org/6.1.0-RC1/release-notes/).
>
> New Contributors
> ----------------
>
> * [`@​mariokhoury4`](https://github.com/mariokhoury4) made their first contribution in [junit-team/junit-framework#4574](https://redirect.github.com/junit-team/junit-framework/pull/4574)
> * [`@​Ogu1208`](https://github.com/Ogu1208) made their first contribution in [junit-team/junit-framework#5145](https://redirect.github.com/junit-team/junit-framework/pull/5145)
> * [`@​HyungGeun94`](https://github.com/HyungGeun94) made their first contribution in [junit-team/junit-framework#5271](https://redirect.github.com/junit-team/junit-framework/pull/5271)
> * [`@​yalishevant`](https://github.com/yalishevant) made their first contribution in [junit-team/junit-framework#5316](https://redirect.github.com/junit-team/junit-framework/pull/5316)
> * [`@​JINU-CHANG`](https://github.com/JINU-CHANG) made their first contribution in [junit-team/junit-framework#5290](https://redirect.github.com/junit-team/junit-framework/pull/5290)
> * [`@​jaschdoc`](https://github.com/jaschdoc) made their first contribution in [junit-team/junit-framework#5427](https://redirect.github.com/junit-team/junit-framework/pull/5427)
> * [`@​kawshikbuet17`](https://github.com/kawshikbuet17) made their first contribution in [junit-team/junit-framework#5561](https://redirect.github.com/junit-team/junit-framework/pull/5561)
> * [`@​msridhar`](https://github.com/msridhar) made their first contribution in [junit-team/junit-framework#5602](https://redirect.github.com/junit-team/junit-framework/pull/5602)
>
> **Full Changelog**: <junit-team/junit-framework@r6.1.0-M1...r6.1.0-RC1>
>
> JUnit 6.1.0-M1 = Platform 6.1.0-M1 + Jupiter 6.1.0-M1 + Vintage 6.1.0-M1
>
> See [Release Notes](https://docs.junit.org/6.1.0-M1/release-notes/).
>
> New Contributors
> ----------------
>
> * [`@​vy`](https://github.com/vy) made their first contribution in [junit-team/junit-framework#5041](https://redirect.github.com/junit-team/junit-framework/pull/5041)
> * [`@​Pankraz76`](https://github.com/Pankraz76) made their first contribution in [junit-team/junit-framework#5006](https://redirect.github.com/junit-team/junit-framework/pull/5006)
> * [`@​arukiidou`](https://github.com/arukiidou) made their first contribution in [junit-team/junit-framework#5066](https://redirect.github.com/junit-team/junit-framework/pull/5066)
> * [`@​laeubi`](https://github.com/laeubi) made their first contribution in [junit-team/junit-framework#5092](https://redirect.github.com/junit-team/junit-framework/pull/5092)
> * [`@​jihun4452`](https://github.com/jihun4452) made their first contribution in [junit-team/junit-framework#5088](https://redirect.github.com/junit-team/junit-framework/pull/5088)
> * [`@​TWiStErRob`](https://github.com/TWiStErRob) made their first contribution in [junit-team/junit-framework#5133](https://redirect.github.com/junit-team/junit-framework/pull/5133)
>
> **Full Changelog**: <junit-team/junit-framework@r6.0.0...r6.1.0-M1>


Commits

* [`0dc3af1`](junit-team/junit-framework@0dc3af1) Release 6.1.0
* [`1d13002`](junit-team/junit-framework@1d13002) Prepare 6.1.0 release notes
* [`072b217`](junit-team/junit-framework@072b217) Update plugin spotless to v8.5.0 ([#5668](https://redirect.github.com/junit-team/junit-framework/issues/5668))
* [`3a53480`](junit-team/junit-framework@3a53480) Update Gradle to v9.5.1 ([#5666](https://redirect.github.com/junit-team/junit-framework/issues/5666))
* [`0e18a20`](junit-team/junit-framework@0e18a20) Update zizmorcore/zizmor-action action to v0.5.4 ([#5669](https://redirect.github.com/junit-team/junit-framework/issues/5669))
* [`0a2634f`](junit-team/junit-framework@0a2634f) Update github/codeql-action action to v4.35.5 ([#5671](https://redirect.github.com/junit-team/junit-framework/issues/5671))
* [`4dbd556`](junit-team/junit-framework@4dbd556) Restructure workflows to have single "status" job ([#5670](https://redirect.github.com/junit-team/junit-framework/issues/5670))
* [`f2194ce`](junit-team/junit-framework@f2194ce) Increase timeout to reduce flakiness
* [`5c8fdd2`](junit-team/junit-framework@5c8fdd2) Update dependency org.apache.groovy:groovy to v5.0.6 ([#5659](https://redirect.github.com/junit-team/junit-framework/issues/5659))
* [`43c6982`](junit-team/junit-framework@43c6982) Update dependency org.slf4j:slf4j-jdk14 to v2.0.18 ([#5667](https://redirect.github.com/junit-team/junit-framework/issues/5667))
* Additional commits viewable in [compare view](junit-team/junit-framework@r6.0.3...r6.1.0)
  
Updates `org.junit.jupiter:junit-jupiter-params` from 6.0.3 to 6.1.0
Release notes

*Sourced from [org.junit.jupiter:junit-jupiter-params's releases](https://github.com/junit-team/junit-framework/releases).*

> JUnit 6.1.0 = Platform 6.1.0 + Jupiter 6.1.0 + Vintage 6.1.0
>
> See [Release Notes](https://docs.junit.org/6.1.0/release-notes.html).
>
> New Contributors
> ----------------
>
> * [`@​JarvisCraft`](https://github.com/JarvisCraft) made their first contribution in [junit-team/junit-framework#5633](https://redirect.github.com/junit-team/junit-framework/pull/5633)
> * [`@​Maran23`](https://github.com/Maran23) made their first contribution in [junit-team/junit-framework#5644](https://redirect.github.com/junit-team/junit-framework/pull/5644)
>
> **Full Changelog**: <junit-team/junit-framework@r6.0.3...r6.1.0>
>
> JUnit 6.1.0-RC1 = Platform 6.1.0-RC1 + Jupiter 6.1.0-RC1 + Vintage 6.1.0-RC1
>
> See [Release Notes](https://docs.junit.org/6.1.0-RC1/release-notes/).
>
> New Contributors
> ----------------
>
> * [`@​mariokhoury4`](https://github.com/mariokhoury4) made their first contribution in [junit-team/junit-framework#4574](https://redirect.github.com/junit-team/junit-framework/pull/4574)
> * [`@​Ogu1208`](https://github.com/Ogu1208) made their first contribution in [junit-team/junit-framework#5145](https://redirect.github.com/junit-team/junit-framework/pull/5145)
> * [`@​HyungGeun94`](https://github.com/HyungGeun94) made their first contribution in [junit-team/junit-framework#5271](https://redirect.github.com/junit-team/junit-framework/pull/5271)
> * [`@​yalishevant`](https://github.com/yalishevant) made their first contribution in [junit-team/junit-framework#5316](https://redirect.github.com/junit-team/junit-framework/pull/5316)
> * [`@​JINU-CHANG`](https://github.com/JINU-CHANG) made their first contribution in [junit-team/junit-framework#5290](https://redirect.github.com/junit-team/junit-framework/pull/5290)
> * [`@​jaschdoc`](https://github.com/jaschdoc) made their first contribution in [junit-team/junit-framework#5427](https://redirect.github.com/junit-team/junit-framework/pull/5427)
> * [`@​kawshikbuet17`](https://github.com/kawshikbuet17) made their first contribution in [junit-team/junit-framework#5561](https://redirect.github.com/junit-team/junit-framework/pull/5561)
> * [`@​msridhar`](https://github.com/msridhar) made their first contribution in [junit-team/junit-framework#5602](https://redirect.github.com/junit-team/junit-framework/pull/5602)
>
> **Full Changelog**: <junit-team/junit-framework@r6.1.0-M1...r6.1.0-RC1>
>
> JUnit 6.1.0-M1 = Platform 6.1.0-M1 + Jupiter 6.1.0-M1 + Vintage 6.1.0-M1
>
> See [Release Notes](https://docs.junit.org/6.1.0-M1/release-notes/).
>
> New Contributors
> ----------------
>
> * [`@​vy`](https://github.com/vy) made their first contribution in [junit-team/junit-framework#5041](https://redirect.github.com/junit-team/junit-framework/pull/5041)
> * [`@​Pankraz76`](https://github.com/Pankraz76) made their first contribution in [junit-team/junit-framework#5006](https://redirect.github.com/junit-team/junit-framework/pull/5006)
> * [`@​arukiidou`](https://github.com/arukiidou) made their first contribution in [junit-team/junit-framework#5066](https://redirect.github.com/junit-team/junit-framework/pull/5066)
> * [`@​laeubi`](https://github.com/laeubi) made their first contribution in [junit-team/junit-framework#5092](https://redirect.github.com/junit-team/junit-framework/pull/5092)
> * [`@​jihun4452`](https://github.com/jihun4452) made their first contribution in [junit-team/junit-framework#5088](https://redirect.github.com/junit-team/junit-framework/pull/5088)
> * [`@​TWiStErRob`](https://github.com/TWiStErRob) made their first contribution in [junit-team/junit-framework#5133](https://redirect.github.com/junit-team/junit-framework/pull/5133)
>
> **Full Changelog**: <junit-team/junit-framework@r6.0.0...r6.1.0-M1>


Commits

* [`0dc3af1`](junit-team/junit-framework@0dc3af1) Release 6.1.0
* [`1d13002`](junit-team/junit-framework@1d13002) Prepare 6.1.0 release notes
* [`072b217`](junit-team/junit-framework@072b217) Update plugin spotless to v8.5.0 ([#5668](https://redirect.github.com/junit-team/junit-framework/issues/5668))
* [`3a53480`](junit-team/junit-framework@3a53480) Update Gradle to v9.5.1 ([#5666](https://redirect.github.com/junit-team/junit-framework/issues/5666))
* [`0e18a20`](junit-team/junit-framework@0e18a20) Update zizmorcore/zizmor-action action to v0.5.4 ([#5669](https://redirect.github.com/junit-team/junit-framework/issues/5669))
* [`0a2634f`](junit-team/junit-framework@0a2634f) Update github/codeql-action action to v4.35.5 ([#5671](https://redirect.github.com/junit-team/junit-framework/issues/5671))
* [`4dbd556`](junit-team/junit-framework@4dbd556) Restructure workflows to have single "status" job ([#5670](https://redirect.github.com/junit-team/junit-framework/issues/5670))
* [`f2194ce`](junit-team/junit-framework@f2194ce) Increase timeout to reduce flakiness
* [`5c8fdd2`](junit-team/junit-framework@5c8fdd2) Update dependency org.apache.groovy:groovy to v5.0.6 ([#5659](https://redirect.github.com/junit-team/junit-framework/issues/5659))
* [`43c6982`](junit-team/junit-framework@43c6982) Update dependency org.slf4j:slf4j-jdk14 to v2.0.18 ([#5667](https://redirect.github.com/junit-team/junit-framework/issues/5667))
* Additional commits viewable in [compare view](junit-team/junit-framework@r6.0.3...r6.1.0)
  
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
mergify Bot added a commit to robfrank/amphora that referenced this pull request Jun 2, 2026
….1.0 [skip ci]

Bumps [org.junit.jupiter:junit-jupiter](https://github.com/junit-team/junit-framework) from 6.0.3 to 6.1.0.
Release notes

*Sourced from [org.junit.jupiter:junit-jupiter's releases](https://github.com/junit-team/junit-framework/releases).*

> JUnit 6.1.0 = Platform 6.1.0 + Jupiter 6.1.0 + Vintage 6.1.0
>
> See [Release Notes](https://docs.junit.org/6.1.0/release-notes.html).
>
> New Contributors
> ----------------
>
> * [`@​JarvisCraft`](https://github.com/JarvisCraft) made their first contribution in [junit-team/junit-framework#5633](https://redirect.github.com/junit-team/junit-framework/pull/5633)
> * [`@​Maran23`](https://github.com/Maran23) made their first contribution in [junit-team/junit-framework#5644](https://redirect.github.com/junit-team/junit-framework/pull/5644)
>
> **Full Changelog**: <junit-team/junit-framework@r6.0.3...r6.1.0>
>
> JUnit 6.1.0-RC1 = Platform 6.1.0-RC1 + Jupiter 6.1.0-RC1 + Vintage 6.1.0-RC1
>
> See [Release Notes](https://docs.junit.org/6.1.0-RC1/release-notes/).
>
> New Contributors
> ----------------
>
> * [`@​mariokhoury4`](https://github.com/mariokhoury4) made their first contribution in [junit-team/junit-framework#4574](https://redirect.github.com/junit-team/junit-framework/pull/4574)
> * [`@​Ogu1208`](https://github.com/Ogu1208) made their first contribution in [junit-team/junit-framework#5145](https://redirect.github.com/junit-team/junit-framework/pull/5145)
> * [`@​HyungGeun94`](https://github.com/HyungGeun94) made their first contribution in [junit-team/junit-framework#5271](https://redirect.github.com/junit-team/junit-framework/pull/5271)
> * [`@​yalishevant`](https://github.com/yalishevant) made their first contribution in [junit-team/junit-framework#5316](https://redirect.github.com/junit-team/junit-framework/pull/5316)
> * [`@​JINU-CHANG`](https://github.com/JINU-CHANG) made their first contribution in [junit-team/junit-framework#5290](https://redirect.github.com/junit-team/junit-framework/pull/5290)
> * [`@​jaschdoc`](https://github.com/jaschdoc) made their first contribution in [junit-team/junit-framework#5427](https://redirect.github.com/junit-team/junit-framework/pull/5427)
> * [`@​kawshikbuet17`](https://github.com/kawshikbuet17) made their first contribution in [junit-team/junit-framework#5561](https://redirect.github.com/junit-team/junit-framework/pull/5561)
> * [`@​msridhar`](https://github.com/msridhar) made their first contribution in [junit-team/junit-framework#5602](https://redirect.github.com/junit-team/junit-framework/pull/5602)
>
> **Full Changelog**: <junit-team/junit-framework@r6.1.0-M1...r6.1.0-RC1>
>
> JUnit 6.1.0-M1 = Platform 6.1.0-M1 + Jupiter 6.1.0-M1 + Vintage 6.1.0-M1
>
> See [Release Notes](https://docs.junit.org/6.1.0-M1/release-notes/).
>
> New Contributors
> ----------------
>
> * [`@​vy`](https://github.com/vy) made their first contribution in [junit-team/junit-framework#5041](https://redirect.github.com/junit-team/junit-framework/pull/5041)
> * [`@​Pankraz76`](https://github.com/Pankraz76) made their first contribution in [junit-team/junit-framework#5006](https://redirect.github.com/junit-team/junit-framework/pull/5006)
> * [`@​arukiidou`](https://github.com/arukiidou) made their first contribution in [junit-team/junit-framework#5066](https://redirect.github.com/junit-team/junit-framework/pull/5066)
> * [`@​laeubi`](https://github.com/laeubi) made their first contribution in [junit-team/junit-framework#5092](https://redirect.github.com/junit-team/junit-framework/pull/5092)
> * [`@​jihun4452`](https://github.com/jihun4452) made their first contribution in [junit-team/junit-framework#5088](https://redirect.github.com/junit-team/junit-framework/pull/5088)
> * [`@​TWiStErRob`](https://github.com/TWiStErRob) made their first contribution in [junit-team/junit-framework#5133](https://redirect.github.com/junit-team/junit-framework/pull/5133)
>
> **Full Changelog**: <junit-team/junit-framework@r6.0.0...r6.1.0-M1>


Commits

* [`0dc3af1`](junit-team/junit-framework@0dc3af1) Release 6.1.0
* [`1d13002`](junit-team/junit-framework@1d13002) Prepare 6.1.0 release notes
* [`072b217`](junit-team/junit-framework@072b217) Update plugin spotless to v8.5.0 ([#5668](https://redirect.github.com/junit-team/junit-framework/issues/5668))
* [`3a53480`](junit-team/junit-framework@3a53480) Update Gradle to v9.5.1 ([#5666](https://redirect.github.com/junit-team/junit-framework/issues/5666))
* [`0e18a20`](junit-team/junit-framework@0e18a20) Update zizmorcore/zizmor-action action to v0.5.4 ([#5669](https://redirect.github.com/junit-team/junit-framework/issues/5669))
* [`0a2634f`](junit-team/junit-framework@0a2634f) Update github/codeql-action action to v4.35.5 ([#5671](https://redirect.github.com/junit-team/junit-framework/issues/5671))
* [`4dbd556`](junit-team/junit-framework@4dbd556) Restructure workflows to have single "status" job ([#5670](https://redirect.github.com/junit-team/junit-framework/issues/5670))
* [`f2194ce`](junit-team/junit-framework@f2194ce) Increase timeout to reduce flakiness
* [`5c8fdd2`](junit-team/junit-framework@5c8fdd2) Update dependency org.apache.groovy:groovy to v5.0.6 ([#5659](https://redirect.github.com/junit-team/junit-framework/issues/5659))
* [`43c6982`](junit-team/junit-framework@43c6982) Update dependency org.slf4j:slf4j-jdk14 to v2.0.18 ([#5667](https://redirect.github.com/junit-team/junit-framework/issues/5667))
* Additional commits viewable in [compare view](junit-team/junit-framework@r6.0.3...r6.1.0)
mergify Bot added a commit to robfrank/linklift that referenced this pull request Jun 4, 2026
Bumps [org.junit:junit-bom](https://github.com/junit-team/junit-framework) from 6.0.3 to 6.1.0.
Release notes

*Sourced from [org.junit:junit-bom's releases](https://github.com/junit-team/junit-framework/releases).*

> JUnit 6.1.0 = Platform 6.1.0 + Jupiter 6.1.0 + Vintage 6.1.0
>
> See [Release Notes](https://docs.junit.org/6.1.0/release-notes.html).
>
> New Contributors
> ----------------
>
> * [`@​JarvisCraft`](https://github.com/JarvisCraft) made their first contribution in [junit-team/junit-framework#5633](https://redirect.github.com/junit-team/junit-framework/pull/5633)
> * [`@​Maran23`](https://github.com/Maran23) made their first contribution in [junit-team/junit-framework#5644](https://redirect.github.com/junit-team/junit-framework/pull/5644)
>
> **Full Changelog**: <junit-team/junit-framework@r6.0.3...r6.1.0>
>
> JUnit 6.1.0-RC1 = Platform 6.1.0-RC1 + Jupiter 6.1.0-RC1 + Vintage 6.1.0-RC1
>
> See [Release Notes](https://docs.junit.org/6.1.0-RC1/release-notes/).
>
> New Contributors
> ----------------
>
> * [`@​mariokhoury4`](https://github.com/mariokhoury4) made their first contribution in [junit-team/junit-framework#4574](https://redirect.github.com/junit-team/junit-framework/pull/4574)
> * [`@​Ogu1208`](https://github.com/Ogu1208) made their first contribution in [junit-team/junit-framework#5145](https://redirect.github.com/junit-team/junit-framework/pull/5145)
> * [`@​HyungGeun94`](https://github.com/HyungGeun94) made their first contribution in [junit-team/junit-framework#5271](https://redirect.github.com/junit-team/junit-framework/pull/5271)
> * [`@​yalishevant`](https://github.com/yalishevant) made their first contribution in [junit-team/junit-framework#5316](https://redirect.github.com/junit-team/junit-framework/pull/5316)
> * [`@​JINU-CHANG`](https://github.com/JINU-CHANG) made their first contribution in [junit-team/junit-framework#5290](https://redirect.github.com/junit-team/junit-framework/pull/5290)
> * [`@​jaschdoc`](https://github.com/jaschdoc) made their first contribution in [junit-team/junit-framework#5427](https://redirect.github.com/junit-team/junit-framework/pull/5427)
> * [`@​kawshikbuet17`](https://github.com/kawshikbuet17) made their first contribution in [junit-team/junit-framework#5561](https://redirect.github.com/junit-team/junit-framework/pull/5561)
> * [`@​msridhar`](https://github.com/msridhar) made their first contribution in [junit-team/junit-framework#5602](https://redirect.github.com/junit-team/junit-framework/pull/5602)
>
> **Full Changelog**: <junit-team/junit-framework@r6.1.0-M1...r6.1.0-RC1>
>
> JUnit 6.1.0-M1 = Platform 6.1.0-M1 + Jupiter 6.1.0-M1 + Vintage 6.1.0-M1
>
> See [Release Notes](https://docs.junit.org/6.1.0-M1/release-notes/).
>
> New Contributors
> ----------------
>
> * [`@​vy`](https://github.com/vy) made their first contribution in [junit-team/junit-framework#5041](https://redirect.github.com/junit-team/junit-framework/pull/5041)
> * [`@​Pankraz76`](https://github.com/Pankraz76) made their first contribution in [junit-team/junit-framework#5006](https://redirect.github.com/junit-team/junit-framework/pull/5006)
> * [`@​arukiidou`](https://github.com/arukiidou) made their first contribution in [junit-team/junit-framework#5066](https://redirect.github.com/junit-team/junit-framework/pull/5066)
> * [`@​laeubi`](https://github.com/laeubi) made their first contribution in [junit-team/junit-framework#5092](https://redirect.github.com/junit-team/junit-framework/pull/5092)
> * [`@​jihun4452`](https://github.com/jihun4452) made their first contribution in [junit-team/junit-framework#5088](https://redirect.github.com/junit-team/junit-framework/pull/5088)
> * [`@​TWiStErRob`](https://github.com/TWiStErRob) made their first contribution in [junit-team/junit-framework#5133](https://redirect.github.com/junit-team/junit-framework/pull/5133)
>
> **Full Changelog**: <junit-team/junit-framework@r6.0.0...r6.1.0-M1>


Commits

* [`0dc3af1`](junit-team/junit-framework@0dc3af1) Release 6.1.0
* [`1d13002`](junit-team/junit-framework@1d13002) Prepare 6.1.0 release notes
* [`072b217`](junit-team/junit-framework@072b217) Update plugin spotless to v8.5.0 ([#5668](https://redirect.github.com/junit-team/junit-framework/issues/5668))
* [`3a53480`](junit-team/junit-framework@3a53480) Update Gradle to v9.5.1 ([#5666](https://redirect.github.com/junit-team/junit-framework/issues/5666))
* [`0e18a20`](junit-team/junit-framework@0e18a20) Update zizmorcore/zizmor-action action to v0.5.4 ([#5669](https://redirect.github.com/junit-team/junit-framework/issues/5669))
* [`0a2634f`](junit-team/junit-framework@0a2634f) Update github/codeql-action action to v4.35.5 ([#5671](https://redirect.github.com/junit-team/junit-framework/issues/5671))
* [`4dbd556`](junit-team/junit-framework@4dbd556) Restructure workflows to have single "status" job ([#5670](https://redirect.github.com/junit-team/junit-framework/issues/5670))
* [`f2194ce`](junit-team/junit-framework@f2194ce) Increase timeout to reduce flakiness
* [`5c8fdd2`](junit-team/junit-framework@5c8fdd2) Update dependency org.apache.groovy:groovy to v5.0.6 ([#5659](https://redirect.github.com/junit-team/junit-framework/issues/5659))
* [`43c6982`](junit-team/junit-framework@43c6982) Update dependency org.slf4j:slf4j-jdk14 to v2.0.18 ([#5667](https://redirect.github.com/junit-team/junit-framework/issues/5667))
* Additional commits viewable in [compare view](junit-team/junit-framework@r6.0.3...r6.1.0)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=org.junit:junit-bom&package-manager=maven&previous-version=6.0.3&new-version=6.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
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.

Using @ParameterizedClass with field injection should validate enough arguments are provided

2 participants