junit5 icon indicating copy to clipboard operation
junit5 copied to clipboard

#2622 Add new AnnotationBasedArgumentsProvider

Open gilbertojrequena opened this issue 2 years ago • 0 comments

Overview

This PR solves #2622

New abstract class AnnotationBasedArgumentsProvider was added and all arguments providers that implemented the AnnotationConsumer interface were changed to extend from it.

The AnnotationConsumerInitializer was adjusted to recognize the annotation present in AnnotationBasedArgumentsProvider#provideArguments since it could not recognize the annotation in AnnotationBasedArgumentsProvider#accept method because its type is generic.

Preconditions were added to provideArguments and accept methods, none of its arguments should be null

I'm not sure where to put the release notes, so I did not do it.


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


Definition of Done

gilbertojrequena avatar Jul 12 '22 19:07 gilbertojrequena