Class EnumArgumentsProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private <E extends java.lang.Enum<E>>
      java.lang.Class<E>
      determineEnumClass​(org.junit.jupiter.api.extension.ExtensionContext context, EnumSource enumSource)  
      private <E extends java.lang.Enum<E>>
      java.util.Set<? extends E>
      getEnumConstants​(org.junit.jupiter.api.extension.ExtensionContext context, EnumSource enumSource)  
      protected java.util.stream.Stream<? extends Arguments> provideArguments​(org.junit.jupiter.api.extension.ExtensionContext context, EnumSource enumSource)
      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
    • Constructor Detail

      • EnumArgumentsProvider

        EnumArgumentsProvider()
    • Method Detail

      • provideArguments

        protected java.util.stream.Stream<? extends Arguments> provideArguments​(org.junit.jupiter.api.extension.ExtensionContext context,
                                                                                EnumSource enumSource)
        Description copied from class: AnnotationBasedArgumentsProvider
        Provide a Stream of Arguments — based on metadata in the provided annotation — to be passed to a @ParameterizedTest method.
        Specified by:
        provideArguments in class AnnotationBasedArgumentsProvider<EnumSource>
        Parameters:
        context - the current extension context; never null
        enumSource - the annotation to process; never null
        Returns:
        a stream of arguments; never null
      • getEnumConstants

        private <E extends java.lang.Enum<E>> java.util.Set<? extends E> getEnumConstants​(org.junit.jupiter.api.extension.ExtensionContext context,
                                                                                          EnumSource enumSource)
      • determineEnumClass

        private <E extends java.lang.Enum<E>> java.lang.Class<E> determineEnumClass​(org.junit.jupiter.api.extension.ExtensionContext context,
                                                                                    EnumSource enumSource)