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 IDataProviderMethodnull if the data provider
is a static one.public java.lang.reflect.Method getMethod()
getMethod in interface IDataProviderMethodMethod object that represents the actual
@DataProvider method.public java.lang.String getName()
IDataProviderMethodgetName in interface IDataProviderMethodpublic boolean isParallel()
IDataProviderMethodisParallel in interface IDataProviderMethodpublic java.util.List<java.lang.Integer> getIndices()
IDataProviderMethodgetIndices in interface IDataProviderMethod