public class LongSubject extends ComparableSubject<LongSubject,Long>
long
subjects.Modifier | Constructor and Description |
---|---|
protected |
LongSubject(FailureMetadata metadata,
Long actual)
Constructor for use by subclasses.
|
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, 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 LongSubject(FailureMetadata metadata, @NullableDecl Long actual)
Subject.check()
.that(actual)
.@Deprecated public final void isEquivalentAccordingToCompareTo(Long other)
Subject.isEqualTo(java.lang.Object)
instead. Long 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<LongSubject,Long>
Copyright © 2018. All rights reserved.