org.testng.IRetryDataProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
Testing framework for Java
The newest version!
package org.testng;
/** Represents the ability to retry a data provider. */
public interface IRetryDataProvider {
/**
* @param dataProvider - The {@link IDataProviderMethod} object which represents the data provider
* to be invoked.
* @return - true
if the data provider should be invoked again.
*/
boolean retry(IDataProviderMethod dataProvider);
/** A dummy implementation which disables retrying of a failed data provider. */
class DisableDataProviderRetries implements IRetryDataProvider {
@Override
public boolean retry(IDataProviderMethod dataProvider) {
return false;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy