package org.testng;
import java.lang.reflect.Method;
import java.util.List;
Represents the attributes of a DataProvider
annotated method. /** Represents the attributes of a {@link org.testng.annotations.DataProvider} annotated method. */
public interface IDataProviderMethod {
Returns: - The instance to which the data provider belongs to. null
if the data
provider is a static one.
/**
* @return - The instance to which the data provider belongs to. <code>null</code> if the data
* provider is a static one.
*/
Object getInstance();
Returns: - A Method
object that represents the actual @DataProvider
method.
/**
* @return - A {@link Method} object that represents the actual {@literal @}{@link
* org.testng.annotations.DataProvider} method.
*/
Method getMethod();
Returns: The name of this DataProvider.
/** @return The name of this DataProvider. */
String getName();
Returns: Whether this data provider should be run in parallel.
/** @return Whether this data provider should be run in parallel. */
boolean isParallel();
Returns: Which indices to run from this data provider, default: all.
/** @return Which indices to run from this data provider, default: all. */
List<Integer> getIndices();
}