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

    • Field Detail

      • annotations

        private final java.util.List<A extends java.lang.annotation.Annotation> annotations
    • 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 java.util.stream.Stream<? extends Arguments> provideArguments​(ParameterDeclarations parameters,
                                                                             org.junit.jupiter.api.extension.ExtensionContext context)
        Description copied from interface: ArgumentsProvider
        Provide a Stream of Arguments to be passed to a @ParameterizedClass or @ParameterizedTest.
        Specified by:
        provideArguments in interface ArgumentsProvider
        Parameters:
        parameters - the parameter declarations for the parameterized class or test; never null
        context - the current extension context; never null
        Returns:
        a stream of arguments; never null
      • provideArguments

        @Deprecated
        @API(status=DEPRECATED,
             since="5.13")
        protected java.util.stream.Stream<? extends Arguments> provideArguments​(org.junit.jupiter.api.extension.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