Annotatable (JUnit API)
Date: 2018-08-04

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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T extends java.lang.annotation.Annotation> T` | `getAnnotation(java.lang.Class<T> annotationType)` Returns the annotation on the model element of the given type, or @code{null}
    `java.lang.annotation.Annotation[]` | `getAnnotations()` Returns the model elements' annotations.

- - ### Method Detail

    - #### getAnnotations

          java.lang.annotation.Annotation[] getAnnotations()

      Returns the model elements' annotations.

    - #### getAnnotation

          <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType)

      Returns the annotation on the model element of the given type, or @code{null}