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

org.testng.internal.ParameterHolder Maven / Gradle / Ivy

There is a newer version: 7.10.2
Show newest version
package org.testng.internal;

import java.util.Iterator;

/**
 * A simple holder for parameters that contains the parameters and where these came from
 * (data provider or testng.xml)
 * @author cbeust
 *
 */
public class ParameterHolder {
  /**
   * Origin of the parameters.
   */
  public enum ParameterOrigin {
    ORIGIN_DATA_PROVIDER, // A data provider
    ORIGIN_XML // TestNG XML suite
  }

  public DataProviderHolder dataProviderHolder;
  public Iterator parameters;
  public ParameterOrigin origin;

  public ParameterHolder(Iterator parameters, ParameterOrigin origin, DataProviderHolder dph) {
    super();
    this.parameters = parameters;
    this.origin = origin;
    this.dataProviderHolder = dph;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy