org.junit.runners.model.FrameworkMember Maven / Gradle / Ivy
package org.junit.runners.model;
import java.lang.annotation.Annotation;
import java.util.List;
/**
* Parent class for {@link FrameworkField} and {@link FrameworkMethod}
*
* @since 4.7
*/
public abstract class FrameworkMember> {
/**
* Returns the annotations on this method
*/
abstract Annotation[] getAnnotations();
abstract boolean isShadowedBy(T otherMember);
boolean isShadowedBy(List members) {
for (T each : members) {
if (isShadowedBy(each)) {
return true;
}
}
return false;
}
public abstract boolean isPublic();
public abstract boolean isStatic();
public abstract String getName();
public abstract Class> getType();
}