Package org.testng.internal
Class DataProviderMethod
java.lang.Object
org.testng.internal.DataProviderMethod
- All Implemented Interfaces:
IDataProviderMethod
Represents an @
DataProvider
annotated method.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IDataProviderAnnotation
private final Object
private final Method
-
Constructor Summary
ConstructorsConstructorDescriptionDataProviderMethod
(Object instance, Method method, IDataProviderAnnotation annotation) -
Method Summary
-
Field Details
-
instance
-
method
-
annotation
-
-
Constructor Details
-
DataProviderMethod
DataProviderMethod(Object instance, Method method, IDataProviderAnnotation annotation)
-
-
Method Details
-
getInstance
- Specified by:
getInstance
in interfaceIDataProviderMethod
- Returns:
- - The instance to which the data provider belongs to.
null
if the data provider is a static one.
-
getMethod
- Specified by:
getMethod
in interfaceIDataProviderMethod
- Returns:
- - A
Method
object that represents the actual @DataProvider
method.
-
getName
- Specified by:
getName
in interfaceIDataProviderMethod
- Returns:
- The name of this DataProvider.
-
isParallel
public boolean isParallel()- Specified by:
isParallel
in interfaceIDataProviderMethod
- Returns:
- Whether this data provider should be run in parallel.
-
getIndices
- Specified by:
getIndices
in interfaceIDataProviderMethod
- Returns:
- Which indices to run from this data provider, default: all.
-