Package io.fluentlenium.adapter
Interface TestRunnerAdapter
- All Known Implementing Classes:
FluentCucumberTest
,FluentTest
,FluentTest
,FluentTestNg
,FluentTestNgSpringTest
,FluentTestRunnerAdapter
public interface TestRunnerAdapter
-
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetClassAnnotation
(Class<T> annotation) Allows to access Class level annotation of currently running test<T extends Annotation>
TgetMethodAnnotation
(Class<T> annotation) Allows to access method level annotation of currently running testClass<?>
-
Method Details
-
getTestClass
Class<?> getTestClass()- Returns:
- Class of currently running test
-
getTestMethodName
String getTestMethodName()- Returns:
- method name (as String) of currently running test
-
getClassAnnotation
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
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
-