public class IntegerSubject extends ComparableSubject<IntegerSubject,Integer>
Integer subjects.| 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, isNotInactual, actualAsString, actualCustomStringRepresentation, check, check, equals, fail, fail, fail, failWithActual, failWithActual, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutActual, failWithoutSubject, getSubject, hashCode, ignoreCheck, internalCustomName, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNotSameInstanceAs, isNull, isSameAs, isSameInstanceAs, named, toStringprotected IntegerSubject(FailureMetadata metadata, @NullableDecl Integer integer)
Subject.check().that(actual).@Deprecated public final void isEquivalentAccordingToCompareTo(Integer other)
Subject.isEqualTo(java.lang.Object) instead. Integer comparison is consistent with equality.ComparableSubjectother 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<IntegerSubject,Integer>Copyright © 2019. All rights reserved.