Class CartesianFactoryArgumentsProvider

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String methodFactoryName  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(CartesianTest.MethodFactory factory)  
      private static java.lang.String extractMethodFactoryName​(java.lang.String methodFactoryName)  
      private static boolean factoryMustBeStatic​(java.lang.reflect.Method factory, java.lang.Object testInstance, org.junit.jupiter.api.TestInstance.Lifecycle lifecycle)  
      private static java.lang.Class<?> findExplicitOrImplicitClass​(java.lang.reflect.Method testMethod, java.lang.String methodFactoryName)  
      private static java.lang.reflect.Method findMethodFactory​(java.lang.reflect.Method testMethod, java.lang.String methodFactoryName, java.lang.Object testInstance, org.junit.jupiter.api.TestInstance.Lifecycle lifecycle)  
      private ArgumentSets invokeMethodFactory​(java.lang.reflect.Method testMethod, java.lang.reflect.Method factory, java.lang.Object testInstance)  
      ArgumentSets provideArguments​(org.junit.jupiter.api.extension.ExtensionContext context)
      Provides an ArgumentSets object, containing the arguments for each parameter in order, to be used for the CartesianTest.
      • 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

      • methodFactoryName

        private java.lang.String methodFactoryName
    • Constructor Detail

      • CartesianFactoryArgumentsProvider

        CartesianFactoryArgumentsProvider()
    • Method Detail

      • findMethodFactory

        private static java.lang.reflect.Method findMethodFactory​(java.lang.reflect.Method testMethod,
                                                                  java.lang.String methodFactoryName,
                                                                  java.lang.Object testInstance,
                                                                  org.junit.jupiter.api.TestInstance.Lifecycle lifecycle)
      • extractMethodFactoryName

        private static java.lang.String extractMethodFactoryName​(java.lang.String methodFactoryName)
      • findExplicitOrImplicitClass

        private static java.lang.Class<?> findExplicitOrImplicitClass​(java.lang.reflect.Method testMethod,
                                                                      java.lang.String methodFactoryName)
      • factoryMustBeStatic

        private static boolean factoryMustBeStatic​(java.lang.reflect.Method factory,
                                                   java.lang.Object testInstance,
                                                   org.junit.jupiter.api.TestInstance.Lifecycle lifecycle)
      • invokeMethodFactory

        private ArgumentSets invokeMethodFactory​(java.lang.reflect.Method testMethod,
                                                 java.lang.reflect.Method factory,
                                                 java.lang.Object testInstance)