public class IntegerSubject extends ComparableSubject<IntegerSubject,Integer>
Integer
subjects.failureStrategy
Constructor and Description |
---|
IntegerSubject(FailureStrategy failureStrategy,
Integer integer) |
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, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hashCode, internalCustomName, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, named
public IntegerSubject(FailureStrategy failureStrategy, @Nullable Integer integer)
@Deprecated public final void isEquivalentAccordingToCompareTo(Integer other)
Subject.isEqualTo(java.lang.Object)
instead. Integer comparison is consistent with equality.ComparableSubject
Comparable.compareTo(T)
, (i.e., fails if 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 © 2017. All rights reserved.