Class TestParameter.InternalImplementationOfThisParameter
java.lang.Object
com.google.testing.junit.testparameterinjector.TestParameter.InternalImplementationOfThisParameter
- Enclosing class:
- TestParameter
public static final class TestParameter.InternalImplementationOfThisParameter extends Object
Implementation of this parameter annotation.
-
Constructor Summary
Constructors Constructor Description InternalImplementationOfThisParameter() -
Method Summary
Modifier and Type Method Description Class<?>getValueType(Class<? extends Annotation> annotationType, com.google.common.base.Optional<Class<?>> parameterClass)default List<Object>provideValues(Annotation annotation, com.google.common.base.Optional<Class<?>> parameterClass)Returns the parameter values for which the test should run.List<Object>provideValues(Annotation uncastAnnotation, com.google.common.base.Optional<Class<?>> maybeParameterClass, com.google.testing.junit.testparameterinjector.GenericParameterContext context)
-
Constructor Details
-
InternalImplementationOfThisParameter
public InternalImplementationOfThisParameter()
-
-
Method Details
-
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 theTestParameterAnnotationannotation.parameterClass- The class of the parameter or field that is being annotated. In case the annotation is annotating a method, constructor or class,parameterClassis an empty optional.
-