com.codeborne.selenide.testng.Annotations Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenide-testng Show documentation
Show all versions of selenide-testng Show documentation
Selenide = concise API for Selenium WebDriver
The newest version!
package com.codeborne.selenide.testng;
import org.jspecify.annotations.Nullable;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
class Annotations {
@Nullable
@SuppressWarnings({"DataFlowIssue", "SameParameterValue"})
static T annotation(Class> testClass, Class annotationClass) {
return testClass.getAnnotation(annotationClass);
}
@Nullable
@SuppressWarnings({"DataFlowIssue", "SameParameterValue"})
static T annotation(Method testMethod, Class annotationClass) {
return testMethod.getAnnotation(annotationClass);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy