public class IntegerSubject extends Subject<IntegerSubject,Long>
Subject.HasField| Modifier and Type | Field and Description |
|---|---|
static SubjectFactory<IntegerSubject,Long> |
INTEGER |
failureStrategy| Constructor and Description |
|---|
IntegerSubject(FailureStrategy failureStrategy,
Integer i) |
IntegerSubject(FailureStrategy failureStrategy,
Long i) |
| Modifier and Type | Method and Description |
|---|---|
void |
is(byte other) |
void |
is(int other) |
void |
is(short other) |
void |
isBetween(long lower,
long upper)
Attests that a Subject
lower and
upper bounds provided or fails. |
void |
isEqualTo(Integer other) |
void |
isEqualTo(Long other) |
void |
isInclusivelyInRange(long lower,
long upper)
Attests that a Subject
lower and
upper bounds provided or fails. |
void |
isNotEqualTo(Integer other) |
void |
isNotEqualTo(Long other) |
check, equals, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hasField, hashCode, internalCustomName, is, isA, isEqualTo, isNotA, isNotEqualTo, isNotNull, isNull, labeled, namedpublic static final SubjectFactory<IntegerSubject,Long> INTEGER
public IntegerSubject(FailureStrategy failureStrategy, Long i)
public IntegerSubject(FailureStrategy failureStrategy, Integer i)
public void isInclusivelyInRange(long lower,
long upper)
lower and
upper bounds provided or fails.IllegalArgumentException - if the lower bound is greater than the upper.public void isBetween(long lower,
long upper)
lower and
upper bounds provided or fails.IllegalArgumentException - if the lower bound is greater than the upper.public void isEqualTo(Integer other)
public void isEqualTo(Long other)
public void isNotEqualTo(Integer other)
public void isNotEqualTo(Long other)
public void is(int other)
public void is(short other)
public void is(byte other)
Copyright © 2016. All rights reserved.