public final class CheckedProviderSubject<T,P extends CheckedProvider<T>> extends com.google.common.truth.Subject<CheckedProviderSubject<T,P>,P>
Subject
for use with CheckedProvider
classes.Modifier and Type | Method and Description |
---|---|
static <T,P extends CheckedProvider<T>> |
assertThat(P provider) |
static <T,P extends CheckedProvider<T>> |
checkedProviders() |
com.google.common.truth.Subject<?,Object> |
providedValue()
Allows for assertions on the value provided by this provider.
|
com.google.common.truth.ThrowableSubject |
thrownException()
Allows for assertions on the exception thrown by this provider.
|
actual, actualAsString, actualCustomStringRepresentation, check, equals, fail, fail, fail, failComparing, failComparing, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutSubject, failWithRawMessage, failWithRawMessageAndCause, getDisplaySubject, getSubject, hashCode, ignoreCheck, internalCustomName, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, named
public static <T,P extends CheckedProvider<T>> com.google.common.truth.Subject.Factory<CheckedProviderSubject<T,P>,P> checkedProviders()
public static <T,P extends CheckedProvider<T>> CheckedProviderSubject<T,P> assertThat(@Nullable P provider)
public com.google.common.truth.Subject<?,Object> providedValue()
The value provided by a checked provider is the object returned by a call to CheckedProvider.get()
Subject
for asserting against the return value of CheckedProvider.get()
public com.google.common.truth.ThrowableSubject thrownException()
The exception thrown by a checked provider is the Throwable
thrown by a call to
CheckedProvider.get()
ThrowableSubject
for asserting against the Throwable
thrown by CheckedProvider.get()
Copyright © 2006–2018 Google, Inc.. All rights reserved.