org.junit.contrib.truth.subjects
Class IntegerSubject
java.lang.Object
org.junit.contrib.truth.subjects.Subject<IntegerSubject,Long>
org.junit.contrib.truth.subjects.IntegerSubject
@GwtCompatible
public class IntegerSubject
- extends Subject<IntegerSubject,Long>
Propositions for Integral numeric subjects
- Author:
- David Saff, Christian Gruber (cgruber@israfil.net)
Nested classes/interfaces inherited from class org.junit.contrib.truth.subjects.Subject |
Subject.And<C> |
Methods inherited from class org.junit.contrib.truth.subjects.Subject |
check, fail, failWithoutSubject, getSubject, is, isA, isEqualTo, isNotA, isNotEqualTo, isNotNull, isNull, nextChain |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegerSubject
public IntegerSubject(FailureStrategy failureStrategy,
Long i)
IntegerSubject
public IntegerSubject(FailureStrategy failureStrategy,
Integer i)
isInclusivelyInRange
public Subject.And<IntegerSubject> isInclusivelyInRange(long lower,
long upper)
- Attests that a Subject is inclusively within the
lower
and
upper
bounds provided or fails.
- Throws:
IllegalArgumentException
- if the lower bound is greater than the upper.
isBetween
public Subject.And<IntegerSubject> isBetween(long lower,
long upper)
- Attests that a Subject is exclusively within the
lower
and
upper
bounds provided or fails.
- Throws:
IllegalArgumentException
- if the lower bound is greater than the upper.
isEqualTo
public Subject.And<IntegerSubject> isEqualTo(Integer other)
isEqualTo
public Subject.And<IntegerSubject> isEqualTo(Long other)
isNotEqualTo
public Subject.And<IntegerSubject> isNotEqualTo(Integer other)
isNotEqualTo
public Subject.And<IntegerSubject> isNotEqualTo(Long other)
is
public Subject.And<IntegerSubject> is(int other)
is
public Subject.And<IntegerSubject> is(short other)
is
public Subject.And<IntegerSubject> is(byte other)
Copyright © 2014. All Rights Reserved.