Package org.testng
Interface IDataProviderMethod
-
public interface IDataProviderMethod
Represents the attributes of aDataProvider
annotated method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.List<java.lang.Integer>
getIndices()
java.lang.Object
getInstance()
java.lang.reflect.Method
getMethod()
java.lang.String
getName()
boolean
isParallel()
default boolean
propagateFailureAsTestFailure()
-
-
-
Method Detail
-
getInstance
java.lang.Object getInstance()
- Returns:
- - The instance to which the data provider belongs to.
null
if the data provider is a static one.
-
getMethod
java.lang.reflect.Method getMethod()
- Returns:
- - A
Method
object that represents the actual @DataProvider
method.
-
getName
java.lang.String getName()
- Returns:
- The name of this DataProvider.
-
isParallel
boolean isParallel()
- Returns:
- Whether this data provider should be run in parallel.
-
getIndices
java.util.List<java.lang.Integer> getIndices()
- Returns:
- Which indices to run from this data provider, default: all.
-
propagateFailureAsTestFailure
default boolean propagateFailureAsTestFailure()
- Returns:
- Whether failures in data providers should be treated as test failures
-
-