public class IntegerSubject extends ComparableSubject<IntegerSubject,Integer>
Integer
subjects.Subject.HasField
Modifier and Type | Field | Description |
---|---|---|
static SubjectFactory<IntegerSubject,Integer> |
INTEGER |
Deprecated.
Use a
for each style loop over your Iterable<Integer> instead. |
failureStrategy
Constructor | Description |
---|---|
IntegerSubject(FailureStrategy failureStrategy,
Integer integer) |
Modifier and Type | Method | Description |
---|---|---|
void |
is(byte other) |
|
void |
is(long other) |
|
void |
is(short other) |
|
void |
isBetween(int lower,
int upper) |
Deprecated.
Use
isIn(Range.open(lower, upper)) instead. |
void |
isEqualTo(long other) |
|
void |
isEqualTo(Object other) |
Fails if the subject is not equal to the given object.
|
void |
isInclusivelyInRange(int lower,
int 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
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
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<IntegerSubject,Integer> INTEGER
for each
style loop over your Iterable<Integer>
instead.public IntegerSubject(FailureStrategy failureStrategy, Integer integer)
@Deprecated public void isInclusivelyInRange(int lower, int upper)
isIn(Range.closed(lower, upper))
instead.lower
and
upper
bounds provided or fails.@Deprecated public void isBetween(int lower, int upper)
isIn(Range.open(lower, upper))
instead.lower
and
upper
bounds provided or fails.public void isEqualTo(Object other)
Subject
isEqualTo
in class Subject<IntegerSubject,Integer>
public void isNotEqualTo(Object other)
Subject
isNotEqualTo
in class Subject<IntegerSubject,Integer>
public void isEqualTo(long other)
public void is(long other)
public void is(short other)
public void is(byte other)
Copyright © 2019. All rights reserved.