org.junit.runners.model.Annotatable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of reactor-junit4 Show documentation
Show all versions of reactor-junit4 Show documentation
JUnit is a unit testing framework for Java, created by Erich Gamma and Kent Beck.
The newest version!
package org.junit.runners.model;
import java.lang.annotation.Annotation;
/**
* A model element that may have annotations.
*
* @since 4.12
*/
public interface Annotatable {
/**
* Returns the model elements' annotations.
*/
Annotation[] getAnnotations();
/**
* Returns the annotation on the model element of the given type, or @code{null}
*/
T getAnnotation(Class annotationType);
}