net.serenitybdd.junit.runners.TestMethodConfiguration Maven / Gradle / Ivy
package net.serenitybdd.junit.runners;
import net.thucydides.core.annotations.Manual;
import net.thucydides.core.annotations.Pending;
import org.junit.Ignore;
import org.junit.runners.model.FrameworkMethod;
public class TestMethodConfiguration {
private final FrameworkMethod method;
public TestMethodConfiguration(FrameworkMethod method) {
this.method = method;
}
public static TestMethodConfiguration forMethod(FrameworkMethod method) {
return new TestMethodConfiguration(method);
}
public boolean isManual() {
return method.getAnnotation(Manual.class) != null;
}
public boolean isIgnored() {
return method.getAnnotation(Ignore.class) != null;
}
public boolean isPending() {
return method.getAnnotation(Pending.class) != null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy