All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testng.IRetryDataProvider Maven / Gradle / Ivy

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