public class IntegerSubject extends ComparableSubject<Integer>
Integer
subjects.Subject.Factory<SubjectT extends Subject,ActualT>
Modifier | Constructor and Description |
---|---|
protected |
IntegerSubject(FailureMetadata metadata,
Integer integer)
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
void |
isEquivalentAccordingToCompareTo(Integer other)
Deprecated.
Use
Subject.isEqualTo(java.lang.Object) instead. Integer comparison is consistent with equality. |
isAtLeast, isAtMost, isGreaterThan, isIn, isLessThan, isNotIn
actualCustomStringRepresentation, check, equals, failWithActual, failWithActual, failWithoutActual, hashCode, ignoreCheck, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs, toString
protected IntegerSubject(FailureMetadata metadata, @NullableDecl Integer integer)
check(...)
.that(actual)
.@Deprecated public final void isEquivalentAccordingToCompareTo(Integer other)
Subject.isEqualTo(java.lang.Object)
instead. Integer comparison is consistent with equality.ComparableSubject
other
according to Comparable.compareTo(T)
, (i.e., checks that a.comparesTo(b) == 0
).
Note: Do not use this method for checking object equality. Instead, use Subject.isEqualTo(Object)
.
isEquivalentAccordingToCompareTo
in class ComparableSubject<Integer>
Copyright © 2019. All rights reserved.