Class DataDrivenAnnotations

java.lang.Object
net.serenitybdd.junit.runners.DataDrivenAnnotations

public class DataDrivenAnnotations extends Object
  • Method Details

    • forClass

      public static DataDrivenAnnotations forClass(Class testClass)
    • usingEnvironmentVariables

      public DataDrivenAnnotations usingEnvironmentVariables(net.thucydides.model.util.EnvironmentVariables environmentVariables)
    • getParametersTableFromTestDataSource

      public net.thucydides.model.domain.DataTable getParametersTableFromTestDataSource() throws Throwable
      Throws:
      Throwable
    • getTestMethods

      public List<Method> getTestMethods()
    • getParametersTableFromTestDataAnnotation

      public net.thucydides.model.domain.DataTable getParametersTableFromTestDataAnnotation()
    • getTestDataMethod

      public Method getTestDataMethod() throws Exception
      Throws:
      Exception
    • findTestDataSource

      protected List<String> findTestDataSource()
    • findTestDataSourcePaths

      protected String findTestDataSourcePaths()
    • hasTestDataDefined

      public boolean hasTestDataDefined()
    • hasTestDataSourceDefined

      public boolean hasTestDataSourceDefined()
    • getDataAsInstancesOf

      public <T> List<T> getDataAsInstancesOf(Class<T> clazz) throws IOException
      Throws:
      IOException
    • countDataEntries

      public int countDataEntries() throws IOException
      Throws:
      IOException