Class AnnotationBasedArgumentsProvider<A extends java.lang.annotation.Annotation>

    • Field Detail

      • annotation

        private A extends java.lang.annotation.Annotation annotation
    • Constructor Detail

      • AnnotationBasedArgumentsProvider

        public AnnotationBasedArgumentsProvider()
    • Method Detail

      • accept

        public final void accept​(A annotation)
        Specified by:
        accept in interface java.util.function.Consumer<A extends java.lang.annotation.Annotation>
      • provideArguments

        public final java.util.stream.Stream<? extends Arguments> provideArguments​(ExtensionContext context)
        Description copied from interface: ArgumentsProvider
        Provide a Stream of Arguments to be passed to a @ParameterizedTest method.
        Specified by:
        provideArguments in interface ArgumentsProvider
        Parameters:
        context - the current extension context; never null
        Returns:
        a stream of arguments; never null
      • provideArguments

        protected abstract java.util.stream.Stream<? extends Arguments> provideArguments​(ExtensionContext context,
                                                                                         A annotation)
        Provide a Stream of Arguments — based on metadata in the provided annotation — to be passed to a @ParameterizedTest method.
        Parameters:
        context - the current extension context; never null
        annotation - the annotation to process; never null
        Returns:
        a stream of arguments; never null