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

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private A annotation  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(A annotation)  
      java.util.stream.Stream<? extends Arguments> provideArguments​(org.junit.jupiter.api.extension.ExtensionContext context)
      Provide a Stream of Arguments to be passed to a @ParameterizedTest method.
      protected abstract 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • 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​(org.junit.jupiter.api.extension.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​(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