Package org.testng.internal
Class DataProviderMethod
java.lang.Object
org.testng.internal.DataProviderMethod
- All Implemented Interfaces:
IDataProviderMethod
- Direct Known Subclasses:
DataProviderMethodRemovable
Represents an @
DataProvider annotated method.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IDataProviderAnnotationprotected Objectprotected 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.
-
propagateFailureAsTestFailure
public boolean propagateFailureAsTestFailure()- Specified by:
propagateFailureAsTestFailurein interfaceIDataProviderMethod- Returns:
- Whether failures in data providers should be treated as test failures
-
retryUsing
- Specified by:
retryUsingin interfaceIDataProviderMethod- Returns:
- - An Class which implements
IRetryDataProviderand which can be used to retry a data provider.
-