public final class DeadlineSubject extends com.google.common.truth.ComparableSubject<DeadlineSubject,io.grpc.Deadline>
Deadline subjects.| Modifier and Type | Class and Description |
|---|---|
class |
DeadlineSubject.TolerantDeadlineComparison
A partially specified proposition about an approximate relationship to a
deadline
subject using a tolerance. |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.truth.SubjectFactory<DeadlineSubject,io.grpc.Deadline> |
deadline() |
DeadlineSubject.TolerantDeadlineComparison |
isWithin(long delta,
TimeUnit timeUnit)
Prepares for a check that the subject is deadline within the given tolerance of an
expected value that will be provided in the next call in the fluent chain.
|
comparesEqualTo, isAtLeast, isAtMost, isEquivalentAccordingToCompareTo, isGreaterThan, isIn, isLessThan, isNotIncheck, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hashCode, internalCustomName, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, namedpublic static com.google.common.truth.SubjectFactory<DeadlineSubject,io.grpc.Deadline> deadline()
@CheckReturnValue public DeadlineSubject.TolerantDeadlineComparison isWithin(long delta, TimeUnit timeUnit)