Class DataDrivenAnnotations

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

public class DataDrivenAnnotations
extends java.lang.Object
  • Method Details

    • forClass

      public static DataDrivenAnnotations forClass​(java.lang.Class testClass)
    • usingEnvironmentVariables

      public DataDrivenAnnotations usingEnvironmentVariables​(EnvironmentVariables environmentVariables)
    • getParametersTableFromTestDataSource

      public net.thucydides.core.model.DataTable getParametersTableFromTestDataSource() throws java.lang.Throwable
      Throws:
      java.lang.Throwable
    • getTestMethods

      public java.util.List<java.lang.reflect.Method> getTestMethods()
    • getParametersTableFromTestDataAnnotation

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

      public java.lang.reflect.Method getTestDataMethod() throws java.lang.Exception
      Throws:
      java.lang.Exception
    • findTestDataSource

      protected java.util.List<java.lang.String> findTestDataSource()
    • findTestDataSourcePaths

      protected java.lang.String findTestDataSourcePaths()
    • hasTestDataDefined

      public boolean hasTestDataDefined()
    • hasTestDataSourceDefined

      public boolean hasTestDataSourceDefined()
    • getDataAsInstancesOf

      public <T> java.util.List<T> getDataAsInstancesOf​(java.lang.Class<T> clazz) throws java.io.IOException
      Throws:
      java.io.IOException
    • countDataEntries

      public int countDataEntries() throws java.io.IOException
      Throws:
      java.io.IOException