Class Assert


  • public class Assert
    extends Object
    Author:
    Martin Kouba
    • Method Detail

      • assertAnnotationSetMatches

        public static void assertAnnotationSetMatches​(Set<? extends Annotation> annotations,
                                                      Class<? extends Annotation>... requiredAnnotationTypes)
        Parameters:
        annotations -
        requiredAnnotationTypes -
        Throws:
        AssertionError - if the annotations set and required annotations do not match
      • assertTypeSetMatches

        public static void assertTypeSetMatches​(Set<? extends Type> types,
                                                Type... requiredTypes)
        Parameters:
        types -
        requiredTypes -
      • assertTypeListMatches

        public static void assertTypeListMatches​(List<? extends Type> types,
                                                 Type... requiredTypes)
        Parameters:
        types -
        requiredTypes -