Skip to content

Fix support for pre-5.13 AnnotationBasedArgumentsProviders #4611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

marcphilipp
Copy link
Member

Overview

The provideArguments(ExtensionContext, Annotation) was deprecated in
5.13 and no longer taken into account when determining the consumed
annotation. Now, it is checked for again if the new method overload
couldn't be found.

Fixes #4610.


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


Definition of Done

The `provideArguments(ExtensionContext, Annotation)` was deprecated in
5.13 and no longer taken into account when determining the consumed
annotation. Now, it is checked for again if the new method overload
couldn't be found.

Fixes #4610.
@marcphilipp marcphilipp self-assigned this Jun 2, 2025
@marcphilipp marcphilipp changed the title Fix support pre-5.13 AnnotationBasedArgumentsProvider implementations Fix support for pre-5.13 AnnotationBasedArgumentsProviders Jun 2, 2025
@marcphilipp marcphilipp merged commit 4bbe57d into main Jun 6, 2025
13 checks passed
@marcphilipp marcphilipp deleted the marc/4610-fix-annotation-arguments-provider-regression branch June 6, 2025 16:34
marcphilipp added a commit that referenced this pull request Jun 7, 2025
…ns (#4611)

The `provideArguments(ExtensionContext, Annotation)` was deprecated in
5.13 and no longer taken into account when determining the consumed
annotation. Now, it is checked for again if the new method overload
couldn't be found.

Fixes #4610.

(cherry picked from commit 4bbe57d)
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.

Parameterized tests using annotations as the argument source and a deprecated provideArguments method fail to execute in 5.13.0
2 participants