public class IntegerSubject extends ComparableSubject<IntegerSubject,Integer>
Integer
subjects.failureStrategy
Constructor and Description |
---|
IntegerSubject(FailureMetadata metadata,
Integer integer) |
IntegerSubject(FailureStrategy failureStrategy,
Integer integer)
Deprecated.
Switch your
Subject from accepting FailureStrategy (and exposing a
SubjectFactory ) to accepting a FailureMetadata (and exposing a Subject.Factory ), at which point you'll call the FailureMetadata overload of this
constructor instead. |
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, failComparing, failComparing, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutSubject, failWithRawMessage, failWithRawMessageAndCause, getDisplaySubject, getSubject, hashCode, ignoreCheck, internalCustomName, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, named
@Deprecated public IntegerSubject(FailureStrategy failureStrategy, @Nullable Integer integer)
Subject
from accepting FailureStrategy
(and exposing a
SubjectFactory
) to accepting a FailureMetadata
(and exposing a Subject.Factory
), at which point you'll call the FailureMetadata
overload of this
constructor instead.public IntegerSubject(FailureMetadata metadata, @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.