org.fluentlenium.adapter.TestRunnerAdapter Maven / Gradle / Ivy
package org.fluentlenium.adapter;
import org.fluentlenium.adapter.exception.AnnotationNotFoundException;
import java.lang.annotation.Annotation;
public interface TestRunnerAdapter {
/**
* @return Class of currently running test
*/
Class> getTestClass();
/**
* @return method name (as String) of currently running test
*/
String getTestMethodName();
/**
* Allows to access Class level annotation of currently running test
*
* @param annotation interface you want to access
* @param the class annotation
* @return Annotation instance
* @throws AnnotationNotFoundException when annotation you want to access couldn't be find
*/
T getClassAnnotation(Class annotation);
/**
* Allows to access method level annotation of currently running test
*
* @param annotation interface you want to access
* @param the method annotation
* @return Annotation instance
* @throws AnnotationNotFoundException of annotation you want to access couldn't be found
*/
T getMethodAnnotation(Class annotation);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy