Class Asserts


  • public final class Asserts
    extends Object
    • Method Detail

      • assertNonNullOrThrow

        public static void assertNonNullOrThrow​(Object object,
                                                String message)
      • assertNonNullPropertyOrThrow

        public static void assertNonNullPropertyOrThrow​(ReflectionProperty reflectionProperty)
      • assertNonBlankOrThrow

        public static void assertNonBlankOrThrow​(String object,
                                                 String message)
      • assertNonEmptyOrThrow

        public static void assertNonEmptyOrThrow​(Collection<?> collection,
                                                 String message)
      • assertTrueOrThrow

        public static void assertTrueOrThrow​(boolean flag,
                                             String message)
      • assertFalseOrThrow

        public static void assertFalseOrThrow​(boolean flag,
                                              String message)
      • requireNonNullOrThrow

        public static <T> T requireNonNullOrThrow​(T object,
                                                  String message)
      • assertNonNullNotBlankOrThrow

        public static void assertNonNullNotBlankOrThrow​(Object object,
                                                        String message)
      • assertNonNullNotEmptyOrThrow

        public static void assertNonNullNotEmptyOrThrow​(Collection<?> collection,
                                                        String message)
      • assertZoneIdOrThrow

        public static void assertZoneIdOrThrow​(String zoneId,
                                               String message)
      • assertDateTimePatternOrThrow

        public static void assertDateTimePatternOrThrow​(String dateTimePattern,
                                                        String message)