@Component(value="parameterProviderInvocation") public class ParameterProviderInvocation extends Object
Parameter
or
IteratedParameter
. It does so by calling the underlying data provider which might be the test class itself or an
external provider class.Constructor and Description |
---|
ParameterProviderInvocation() |
Modifier and Type | Method and Description |
---|---|
<T> T |
invoke(Field field,
Class<T> returnType,
Object testClass)
Invokes the provider method for the given field and returns an instance of the given returnType.
|
<T> T |
invoke(Parameter parameter,
Class<T> returnType,
Object testClass)
Invokes the provider method for the given parameter and returns an instance of the given returnType.
|
protected <T> T |
invokeInternal(AnnotatedElement annotatedElement,
Class<T> returnType,
Object testClass) |
public <T> T invoke(Parameter parameter, Class<T> returnType, Object testClass)
T
- return type of the provider methodparameter
- The step parameterreturnType
- The expected return typetestClass
- The current test class instancepublic <T> T invoke(Field field, Class<T> returnType, Object testClass)
T
- return type of the provider methodfield
- The test class fieldreturnType
- The expected return typetestClass
- The current test class instanceprotected <T> T invokeInternal(AnnotatedElement annotatedElement, Class<T> returnType, Object testClass)
Copyright © 2018–2021 b+m Informatik AG. All rights reserved.