Package org.junit.runners.model
Interface Annotatable
- All Known Implementing Classes:
FrameworkField
,FrameworkMember
,FrameworkMethod
,TestClass
public interface Annotatable
A model element that may have annotations.
- Since:
- 4.12
-
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetAnnotation
(Class<T> annotationType) Returns the annotation on the model element of the given type, or @code{null}Returns the model elements' annotations.
-
Method Details
-
getAnnotations
Annotation[] getAnnotations()Returns the model elements' annotations. -
getAnnotation
Returns the annotation on the model element of the given type, or @code{null}
-