public interface IDataProviderInterceptor extends ITestNGListener
@Listeners annotation or via the
listeners tag in the suite file or via a Service Provider Interface mechanism.
The implementation would be able to alter the actual set of data using which a test method would
be iterated upon.| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<java.lang.Object[]> |
intercept(java.util.Iterator<java.lang.Object[]> original,
IDataProviderMethod dataProviderMethod,
ITestNGMethod method,
ITestContext iTestContext) |
java.util.Iterator<java.lang.Object[]> intercept(java.util.Iterator<java.lang.Object[]> original,
IDataProviderMethod dataProviderMethod,
ITestNGMethod method,
ITestContext iTestContext)
original - - The original data set as produced by a particular data provider.dataProviderMethod - - The IDataProviderMethod method object which represents the
data provider that was invoked.method - - The ITestNGMethod method object which represents the test method that
will receive the parameters.iTestContext - - The ITestContext object that represents the current test
context.