public class LongSubject extends ComparableSubject<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 |
isAtLeast(int other)
Checks that the subject is greater than or equal to
other. |
void |
isAtMost(int other)
Checks that the subject is less than or equal to
other. |
void |
isEquivalentAccordingToCompareTo(Long other)
Deprecated.
Use
Subject.isEqualTo(java.lang.Object) instead. Long comparison is consistent with equality. |
void |
isGreaterThan(int other)
Checks that the subject is greater than
other. |
void |
isLessThan(int other)
Checks that the subject is less than
other. |
isAtLeast, isAtMost, isGreaterThan, isIn, isLessThan, isNotInactualCustomStringRepresentation, check, equals, failWithActual, failWithActual, failWithoutActual, hashCode, ignoreCheck, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs, toStringprotected LongSubject(FailureMetadata metadata, @NullableDecl Long actual)
check(...).that(actual).@Deprecated public final void isEquivalentAccordingToCompareTo(Long other)
Subject.isEqualTo(java.lang.Object) instead. Long comparison is consistent with equality.ComparableSubjectother 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<Long>public final void isGreaterThan(int other)
other.
To check that the subject is greater than or equal to other, use isAtLeast(int).
public final void isLessThan(int other)
other.
To check that the subject is less than or equal to other, use isAtMost(int) .
public final void isAtMost(int other)
other.
To check that the subject is strictly less than other, use isLessThan(int).
public final void isAtLeast(int other)
other.
To check that the subject is strictly greater than other, use isGreaterThan(int).
Copyright © 2019. All rights reserved.