Class AnnotationLoaderUtil

java.lang.Object
net.officefloor.compile.test.annotation.AnnotationLoaderUtil

public class AnnotationLoaderUtil extends Object
Utility functionality for annotations.
Author:
Daniel Sagenschneider
  • Method Details

    • validateAnnotations

      public static void validateAnnotations(String messageSuffix, Object[] expectedAnnotations, Object[] actualAnnotations)
      Validate have expected annotations.
      Parameters:
      messageSuffix - Message suffix to assertion.
      expectedAnnotations - Expected annotation instances.
      actualAnnotations - Actual annotation instances.
    • getAnnotationType

      public static Class<?> getAnnotationType(Object annotation)
      Obtains the type for annotation.
      Parameters:
      annotation - Annotation.
      Returns:
      Type of the annotation.