public class LongSubject extends ComparableSubject<LongSubject,Long>
long
subjects.failureStrategy
Constructor and Description |
---|
LongSubject(FailureMetadata metadata,
Long actual) |
LongSubject(FailureStrategy failureStrategy,
Long actual)
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(Long other)
Deprecated.
Use
Subject.isEqualTo(java.lang.Object) instead. Long 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 LongSubject(FailureStrategy failureStrategy, @Nullable Long actual)
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 LongSubject(FailureMetadata metadata, @Nullable Long actual)
@Deprecated public final void isEquivalentAccordingToCompareTo(Long other)
Subject.isEqualTo(java.lang.Object)
instead. Long 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<LongSubject,Long>
Copyright © 2017. All rights reserved.