public class LongSubject extends ComparableSubject<LongSubject,Long>
long
subjects.Subject.HasField
Modifier and Type | Field and Description |
---|---|
static SubjectFactory<LongSubject,Long> |
LONG
Deprecated.
Use a
for each style loop over your Iterable<Integer> instead. |
failureStrategy
Constructor and Description |
---|
LongSubject(FailureStrategy failureStrategy,
Long subject) |
Modifier and Type | Method and Description |
---|---|
void |
is(byte other) |
void |
is(int other) |
void |
is(short other) |
void |
isBetween(long lower,
long upper)
Deprecated.
Use
isIn(Range.open(lower, upper)) instead. |
void |
isEqualTo(int other) |
void |
isEqualTo(Object other)
Fails if the subject is not equal to the given object.
|
void |
isInclusivelyInRange(long lower,
long upper)
Deprecated.
Use
isIn(Range.closed(lower, upper)) instead. |
void |
isNotEqualTo(Object other)
Fails if the subject is equal to the given object.
|
comparesEqualTo, isAtLeast, isAtMost, isGreaterThan, isIn, isLessThan, isNotIn
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
@Deprecated public static final SubjectFactory<LongSubject,Long> LONG
for each
style loop over your Iterable<Integer>
instead.public LongSubject(FailureStrategy failureStrategy, Long subject)
@Deprecated public void isInclusivelyInRange(long lower, long upper)
isIn(Range.closed(lower, upper))
instead.lower
and
upper
bounds provided or fails.@Deprecated public void isBetween(long lower, long upper)
isIn(Range.open(lower, upper))
instead.lower
and
upper
bounds provided or fails.public void isEqualTo(Object other)
Subject
isEqualTo
in class Subject<LongSubject,Long>
public void isNotEqualTo(Object other)
Subject
isNotEqualTo
in class Subject<LongSubject,Long>
public void isEqualTo(int other)
public void is(int other)
public void is(short other)
public void is(byte other)
Copyright © 2014. All rights reserved.