Package org.testng

Interface IDataProviderMethod


  • public interface IDataProviderMethod
    Represents the attributes of a DataProvider annotated method.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Integer> getIndices()
      Which indices to run from this data provider, default: all.
      java.lang.Object getInstance()  
      java.lang.reflect.Method getMethod()  
      java.lang.String getName()
      The name of this DataProvider.
      boolean isParallel()
      Whether this data provider should be run in parallel.
    • Method Detail

      • getInstance

        java.lang.Object getInstance()
        Returns:
        - The instance to which the data provider belongs to. null if the data provider is a static one.
      • getMethod

        java.lang.reflect.Method getMethod()
        Returns:
        - A Method object that represents the actual @DataProvider method.
      • getName

        java.lang.String getName()
        The name of this DataProvider.
      • isParallel

        boolean isParallel()
        Whether this data provider should be run in parallel.
      • getIndices

        java.util.List<java.lang.Integer> getIndices()
        Which indices to run from this data provider, default: all.