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

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

The newest version!
package org.testng.internal.invokers;

import java.util.Iterator;
import org.testng.IDataProviderMethod;

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

  final IDataProviderMethod dataProviderHolder;
  public final Iterator parameters;
  final ParameterOrigin origin;

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy