Add List-based support to Arguments API#4574
Conversation
3a32cf8 to
9de99b7
Compare
9de99b7 to
3f3aa29
Compare
cbde5ed to
a2ca294
Compare
a2ca294 to
d566f95
Compare
vlsi
left a comment
There was a problem hiding this comment.
Just wondering: have you considered Iterable<? extends @Nullable Object> rather than using a plain List?
Based on my experience with checkerframework's @Nullable, I would suggest List<? extends @Nullable Object> rather than List<Object>.
I've asked jspecify to clarify the documentation anyways: jspecify/jspecify#748
At the same time, it would be nice to add tests that pass something like List<String> to the newly added methods.
For instance, from(Files.readAllLines("path")). I guess the code won't compile if the method uses List<Object> signatures.
|
One more thing: |
I didn't know that but sounds like you're right, according to the spec:
Therefore, I think using
The use case we're addressing here is constructing new |
|
@marcphilipp , sorry for asking the same thing twice, however, could you please clarify why do you mean To me the second case of #4535 sounds like a natural case for using
I've no issues if Of course, it would be great if Java had something like If you mean you force |
The use case we're trying to address here is to go from an existing
We'll discuss that in one of our next team calls. |
|
Team decision: Use |
|
@mariokhoury4 thanks for working on this! Unfortunately we took a long time before we could discuss this and imagine you'll have moved on. So I'll pick up the remaining changes and do some polishing to wrap this up in the next few weeks. |
* Remove periods on @param and @return doc lines * Reference non-deprecated constants * Trim java doc at 80 character * Update since declarations to 6.1 * Use var in ArgumentsTests
Using wildcards in the method parameter is fine, but for the return type of |
- Accessors - Factory methods - Varargs before iterables - Static imports after short-named variants
🔎 No tests executed 🔎🏷️ Commit: 049ade0 Learn more about TestLens at testlens.app. |
|
Note: Manually set DTO check to pass. PR was offered before DTO bot was enabled. |
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)
Overview
This PR adds List-based support to the
ArgumentsAPI for parameterized tests.New additions:
Arguments.of(List<@Nullable Object>)Arguments.arguments(List<@Nullable Object>)(alias)Arguments.argumentSet(String, List<@Nullable Object>)Arguments.toList()— returns a mutableList<@Nullable Object>These additions make it easier to dynamically build arguments from collections when using
@ParameterizedTest.All additions are tested in
ArgumentsTests.java.Fixes #4535
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@APIannotations