com.google.common.truth
Class IntegerSubject
java.lang.Object
com.google.common.truth.Subject<IntegerSubject,Long>
com.google.common.truth.IntegerSubject
public class IntegerSubject
- extends Subject<IntegerSubject,Long>
Propositions for Integral numeric subjects
- Author:
- David Saff, Christian Gruber (cgruber@israfil.net)
Methods inherited from class com.google.common.truth.Subject |
check, equals, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hasField, hashCode, internalCustomName, is, isA, isEqualTo, isNotA, isNotEqualTo, isNotNull, isNull, labeled, named |
INTEGER
public static final SubjectFactory<IntegerSubject,Long> INTEGER
IntegerSubject
public IntegerSubject(FailureStrategy failureStrategy,
Long i)
IntegerSubject
public IntegerSubject(FailureStrategy failureStrategy,
Integer i)
isInclusivelyInRange
public void 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 void 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 void isEqualTo(Integer other)
isEqualTo
public void isEqualTo(Long other)
isNotEqualTo
public void isNotEqualTo(Integer other)
isNotEqualTo
public void isNotEqualTo(Long other)
is
public void is(int other)
is
public void is(short other)
is
public void is(byte other)
Copyright © 2014. All rights reserved.