Class LongSubject
Propositions for
long subjects.-
Nested Class Summary
Nested classes/interfaces inherited from class Subject
Subject.HasField -
Field Summary
FieldsFields inherited from class Subject
failureStrategy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidis(byte other) voidis(int other) voidis(short other) voidisBetween(long lower, long upper) Deprecated.UseisIn(Range.open(lower, upper))instead.voidisEqualTo(int other) voidFails if the subject is not equal to the given object.voidisInclusivelyInRange(long lower, long upper) Deprecated.UseisIn(Range.closed(lower, upper))instead.voidisNotEqualTo(Object other) Fails if the subject is equal to the given object.Methods inherited from class ComparableSubject
comparesEqualTo, isAtLeast, isAtMost, isGreaterThan, isIn, isLessThan, isNotInMethods inherited from class Subject
check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hasField, hashCode, internalCustomName, is, isA, isInstanceOf, isNotA, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, labeled, named
-
Field Details
-
LONG
Deprecated.Use afor eachstyle loop over yourIterable<Integer>instead.
-
-
Constructor Details
-
LongSubject
-
-
Method Details
-
isInclusivelyInRange
Deprecated.UseisIn(Range.closed(lower, upper))instead.Attests that a Subjectis inclusively within the lowerandupperbounds provided or fails. -
isBetween
Deprecated.UseisIn(Range.open(lower, upper))instead.Attests that a Subjectis exclusively within the lowerandupperbounds provided or fails. -
isEqualTo
-
isNotEqualTo
Description copied from class:SubjectFails if the subject is equal to the given object.- Overrides:
isNotEqualToin classSubject<LongSubject, Long>
-
isEqualTo
public void isEqualTo(int other) -
is
public void is(int other) -
is
public void is(short other) -
is
public void is(byte other)
-
for eachstyle loop over yourIterable<Integer>instead.