class DataProviderMethod extends java.lang.Object implements IDataProviderMethod
DataProvider
annotated method.Modifier and Type | Field and Description |
---|---|
private IDataProviderAnnotation |
annotation |
private java.lang.Object |
instance |
private java.lang.reflect.Method |
method |
Constructor and Description |
---|
DataProviderMethod(java.lang.Object instance,
java.lang.reflect.Method method,
IDataProviderAnnotation annotation) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Integer> |
getIndices()
Which indices to run from this data provider, default: all.
|
java.lang.Object |
getInstance() |
java.lang.reflect.Method |
getMethod() |
java.lang.String |
getName()
The name of this DataProvider.
|
boolean |
isParallel()
Whether this data provider should be run in parallel.
|
private final java.lang.Object instance
private final java.lang.reflect.Method method
private final IDataProviderAnnotation annotation
DataProviderMethod(java.lang.Object instance, java.lang.reflect.Method method, IDataProviderAnnotation annotation)
public java.lang.Object getInstance()
getInstance
in interface IDataProviderMethod
null
if the data provider
is a static one.public java.lang.reflect.Method getMethod()
getMethod
in interface IDataProviderMethod
Method
object that represents the actual
@DataProvider
method.public java.lang.String getName()
IDataProviderMethod
getName
in interface IDataProviderMethod
public boolean isParallel()
IDataProviderMethod
isParallel
in interface IDataProviderMethod
public java.util.List<java.lang.Integer> getIndices()
IDataProviderMethod
getIndices
in interface IDataProviderMethod