Class IntegerSubject

    • Field Detail

      • INTEGER

        @Deprecated
        public static final SubjectFactory<IntegerSubject,​java.lang.Integer> INTEGER
        Deprecated.
        Use a for each style loop over your Iterable<Integer> instead.
    • Constructor Detail

      • IntegerSubject

        public IntegerSubject​(FailureStrategy failureStrategy,
                              java.lang.Integer integer)
    • Method Detail

      • isInclusivelyInRange

        @Deprecated
        public void isInclusivelyInRange​(int lower,
                                         int upper)
        Deprecated.
        Use isIn(Range.closed(lower, upper)) instead.
        Attests that the int is inclusively within the lower and upper bounds provided or fails.
      • isBetween

        @Deprecated
        public void isBetween​(int lower,
                              int upper)
        Deprecated.
        Use isIn(Range.open(lower, upper)) instead.
        Attests that the int is exclusively within the lower and upper bounds provided or fails.
      • isEqualTo

        public void isEqualTo​(java.lang.Object other)
        Description copied from class: Subject
        Fails if the subject is not equal to the given object.
        Overrides:
        isEqualTo in class Subject<IntegerSubject,​java.lang.Integer>
      • isNotEqualTo

        public void isNotEqualTo​(java.lang.Object other)
        Description copied from class: Subject
        Fails if the subject is equal to the given object.
        Overrides:
        isNotEqualTo in class Subject<IntegerSubject,​java.lang.Integer>
      • isEqualTo

        public void isEqualTo​(long other)
      • is

        public void is​(long other)
      • is

        public void is​(short other)
      • is

        public void is​(byte other)