junit5 icon indicating copy to clipboard operation
junit5 copied to clipboard

Add repeatable capabilities for @..Source annotations

Open madalingiurca opened this issue 1 year ago • 0 comments

Overview

These changes aim to add capabilities of repeatable @..Source annotations. Solves #3736. Repeatable capabilities added to every annotation that makes use of AnnotationBasedArgumentsProvider by adapting to accept multiple annotations while aggregating the result of each annotation arguments.

Helper class AnnotationConsumerInitializer needs adaptations as well in order to invoke initialization for each annotation if repeatable.

This change does not affect annotations related to null and/or empty sources: @NullSource, @EmptySource and @NullAndEmptySource. This makes sense since they have predefined/hardcoded arguments relevant to null and empty collections.


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


Definition of Done

madalingiurca avatar Apr 18 '24 17:04 madalingiurca