Class ShouldHaveAnnotations

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldHaveAnnotations
    extends BasicErrorMessageFactory
    Creates an error message indicating that an assertion that verifies that a class have an annotation.
    • Constructor Detail

      • ShouldHaveAnnotations

        private ShouldHaveAnnotations​(java.lang.Class<?> actual,
                                      java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> expected,
                                      java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> missing)
    • Method Detail

      • shouldHaveAnnotations

        public static ErrorMessageFactory shouldHaveAnnotations​(java.lang.Class<?> actual,
                                                                java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> expected,
                                                                java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> missing)
        Creates a new ShouldHaveAnnotations.
        Parameters:
        actual - the actual value in the failed assertion.
        expected - expected annotations for this class
        missing - missing annotations for this class
        Returns:
        the created ErrorMessageFactory.