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<?,java.lang.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, check, equals, fail, fail, fail, failComparing, failComparing, failWithActual, failWithActual, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutActual, failWithoutSubject, failWithRawMessage, failWithRawMessageAndCause, getSubject, hashCode, ignoreCheck, internalCustomName, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, named, toString
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<?,java.lang.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()