Class LongSubject

    • Constructor Detail

      • LongSubject

        protected LongSubject​(FailureMetadata metadata,
                              @Nullable Long actual)
        Constructor for use by subclasses. If you want to create an instance of this class itself, call check(...).that(actual).
    • Method Detail

      • isGreaterThan

        public final void isGreaterThan​(int other)
        Checks that the subject is greater than other.

        To check that the subject is greater than or equal to other, use isAtLeast(int).

      • isLessThan

        public final void isLessThan​(int other)
        Checks that the subject is less than other.

        To check that the subject is less than or equal to other, use isAtMost(int) .

      • isAtMost

        public final void isAtMost​(int other)
        Checks that the subject is less than or equal to other.

        To check that the subject is strictly less than other, use isLessThan(int).

      • isAtLeast

        public final void isAtLeast​(int other)
        Checks that the subject is greater than or equal to other.

        To check that the subject is strictly greater than other, use isGreaterThan(int).