Package org.testng
Interface IDataProviderInterceptor
-
- All Superinterfaces:
ITestNGListener
public interface IDataProviderInterceptor extends ITestNGListener
This interface helps define an interceptor for data providers. Implementations of this TestNG listener can be wired in via the@Listeners
annotation or via thelisteners
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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Iterator<java.lang.Object[]>
intercept(java.util.Iterator<java.lang.Object[]> original, IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext)
-
-
-
Method Detail
-
intercept
java.util.Iterator<java.lang.Object[]> intercept(java.util.Iterator<java.lang.Object[]> original, IDataProviderMethod dataProviderMethod, ITestNGMethod method, ITestContext iTestContext)
- Parameters:
original
- - The original data set as produced by a particular data provider.dataProviderMethod
- - TheIDataProviderMethod
method object which represents the data provider that was invoked.method
- - TheITestNGMethod
method object which represents the test method that will receive the parameters.iTestContext
- - TheITestContext
object that represents the current test context.- Returns:
- - The altered data set that would be used by TestNG to run the test method.
-
-