Interface TestRunnerAdapter

All Known Implementing Classes:
FluentCucumberTest, FluentTest, FluentTest, FluentTestNg, FluentTestNgSpringTest, FluentTestRunnerAdapter

public interface TestRunnerAdapter
  • Method Details

    • getTestClass

      Class<?> getTestClass()
      Returns:
      Class of currently running test
    • getTestMethodName

      String getTestMethodName()
      Returns:
      method name (as String) of currently running test
    • getClassAnnotation

      <T extends Annotation> T getClassAnnotation (Class<T> annotation)
      Allows to access Class level annotation of currently running test
      Type Parameters:
      T - the class annotation
      Parameters:
      annotation - interface you want to access
      Returns:
      Annotation instance
      Throws:
      AnnotationNotFoundException - when annotation you want to access couldn't be find
    • getMethodAnnotation

      <T extends Annotation> T getMethodAnnotation (Class<T> annotation)
      Allows to access method level annotation of currently running test
      Type Parameters:
      T - the method annotation
      Parameters:
      annotation - interface you want to access
      Returns:
      Annotation instance
      Throws:
      AnnotationNotFoundException - of annotation you want to access couldn't be found