Class TestParameter.InternalImplementationOfThisParameter

  • Enclosing class:
    TestParameter

    public static final class TestParameter.InternalImplementationOfThisParameter
    extends Object
    Implementation of this parameter annotation.
    • Constructor Detail

      • InternalImplementationOfThisParameter

        public InternalImplementationOfThisParameter()
    • Method Detail

      • provideValues

        public List<Object> provideValues​(Annotation uncastAnnotation,
                                          com.google.common.base.Optional<Class<?>> maybeParameterClass,
                                          com.google.testing.junit.testparameterinjector.GenericParameterContext context)
      • getValueType

        public Class<?> getValueType​(Class<? extends Annotation> annotationType,
                                     com.google.common.base.Optional<Class<?>> parameterClass)
      • provideValues

        public default List<Object> provideValues​(Annotation annotation,
                                                  com.google.common.base.Optional<Class<?>> parameterClass)
        Returns the parameter values for which the test should run.
        Parameters:
        annotation - The annotation instance that was encountered in the test class. The definition of this annotation is itself annotated with the TestParameterAnnotation annotation.
        parameterClass - The class of the parameter or field that is being annotated. In case the annotation is annotating a method, constructor or class, parameterClass is an empty optional.