Validate argument count for field injection #5079#5088
Conversation
marcphilipp
left a comment
There was a problem hiding this comment.
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?
|
Thanks for the review! I’ll try implementing it in ResolverFacade.Converter#resolve as you suggested. |
|
Hi @marcphilipp, I’ve made some changes based on your feedback. I’ve run the related tests, and they pass as expected. |
|
Thank you for your contribution, @jihun4452! 👍 I took a closer look and decided to move the validation to |
|
@marcphilipp |
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)
….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)
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) [](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)
Closes #5079
Summary
This PR adds validation for the number of provided arguments when using field injection with
@ParameterizedClass.Previously, insufficient arguments caused an
ArrayIndexOutOfBoundsExceptionwith an unclear error message.Now, a
ParameterResolutionExceptionis thrown with a clear and descriptive message.Changes
assertEnoughArgumentsForFieldInjection()to check argument count before field injectionParameterResolutionExceptionwhen insufficient arguments are providedrequiredArgumentCountForParameterFields()— computes the required argument countfirstMissingParameterFieldByIndex()— identifies the first missing fieldfailsWithMeaningfulErrorWhenTooFewArgumentsProvidedForFieldInjection()to verify error message clarityImplementation Notes
@SuppressWarnings("NullAway")for the ternary expression handlingarguments.get(), which can return a@Nullable Object[]. The null case is safely handled, but NullAway's static analysis cannot infer this guarantee@ParameterannotationsExample
Before:
After:
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@APIannotations (N/A — internal implementation only)