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 IDataProviderAnnotationprivate final Objectprivate 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:
getInstancein interfaceIDataProviderMethod- Returns:
- - The instance to which the data provider belongs to.
nullif the data provider is a static one.
-
getMethod
- Specified by:
getMethodin interfaceIDataProviderMethod- Returns:
- - A
Methodobject that represents the actual @DataProvidermethod.
-
getName
- Specified by:
getNamein interfaceIDataProviderMethod- Returns:
- The name of this DataProvider.
-
isParallel
public boolean isParallel()- Specified by:
isParallelin interfaceIDataProviderMethod- Returns:
- Whether this data provider should be run in parallel.
-
getIndices
- Specified by:
getIndicesin interfaceIDataProviderMethod- Returns:
- Which indices to run from this data provider, default: all.
-