BooleanSubject, IntegerSubject, LongSubject, StringSubjectpublic abstract class ComparableSubject<S extends Subject<S,T>,T extends Comparable> extends Subject<S,T>
Comparable typed subjects.Subject.HasFieldfailureStrategy| Modifier and Type | Method | Description |
|---|---|---|
void |
comparesEqualTo(T other) |
Fails if the subject is not equivalent to the given value according to
Comparable.compareTo(T). |
void |
isAtLeast(T other) |
Fails if the subject is less than the given value.
|
void |
isAtMost(T other) |
Fails if the subject is greater than the given value.
|
void |
isGreaterThan(T other) |
Fails if the subject is not greater than the given value.
|
void |
isIn(com.google.common.collect.Range<T> range) |
Fails if the subject is not in the given range.
|
void |
isLessThan(T other) |
Fails if the subject is not less than the given value.
|
void |
isNotIn(com.google.common.collect.Range<T> range) |
Fails if the subject is in the given range.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcheck, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hasField, hashCode, internalCustomName, is, isA, isEqualTo, isInstanceOf, isNotA, isNotEqualTo, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, labeled, namedpublic final void isIn(com.google.common.collect.Range<T> range)
public final void isNotIn(com.google.common.collect.Range<T> range)
public final void comparesEqualTo(T other)
Comparable.compareTo(T).public final void isGreaterThan(T other)
public final void isLessThan(T other)
public final void isAtMost(T other)
public final void isAtLeast(T other)
Copyright © 2019. All rights reserved.