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
All Methods Instance Methods Concrete Methods Default Methods 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)
-
-
-
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 theTestParameterAnnotation
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.
-
-