Class AnnotationLoaderUtil
java.lang.Object
net.officefloor.compile.test.annotation.AnnotationLoaderUtil
Utility functionality for annotations.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>getAnnotationType(Object annotation) Obtains the type for annotation.static voidvalidateAnnotations(String messageSuffix, Object[] expectedAnnotations, Object[] actualAnnotations) Validate have expected annotations.
-
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
Obtains the type for annotation.- Parameters:
annotation- Annotation.- Returns:
- Type of the annotation.
-