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. |
comparesEqualTo, isAtLeast, isAtMost, isGreaterThan, isIn, isLessThan, isNotIn
actual, actualAsString, actualCustomStringRepresentation, check, check, equals, fail, fail, fail, failComparing, failComparing, failWithActual, failWithActual, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutActual, failWithoutSubject, failWithRawMessage, failWithRawMessageAndCause, getSubject, hashCode, ignoreCheck, internalCustomName, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, named, toString
protected 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.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<IntegerSubject,Integer>
Copyright © 2018. All rights reserved.