Class TestParameter.InternalImplementationOfThisParameter
java.lang.Object
com.google.testing.junit.testparameterinjector.TestParameter.InternalImplementationOfThisParameter
- Enclosing class:
- TestParameter
Implementation of this parameter annotation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>getValueType(Class<? extends Annotation> annotationType, com.google.common.base.Optional<Class<?>> parameterClass) provideValues(Annotation annotation, com.google.common.base.Optional<Class<?>> parameterClass) Returns the parameter values for which the test should run.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
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.
-