Uses of Class
com.google.common.truth.Subject
-
-
Uses of Subject in com.google.common.truth
Classes in com.google.common.truth with type parameters of type Subject Modifier and Type Interface Description static interface
ExpectFailure.SimpleSubjectBuilderCallback<S extends Subject,A>
A "functional interface" forexpectFailureAbout()
to invoke and capture failures.class
SimpleSubjectBuilder<SubjectT extends Subject,ActualT>
In a fluent assertion chain, exposes the most commonthat
method, which accepts a value under test and returns aSubject
.static interface
Subject.Factory<SubjectT extends Subject,ActualT>
Subclasses of Subject in com.google.common.truth Modifier and Type Class Description (package private) class
AbstractArraySubject
A common supertype for Array subjects, abstracting some common display and error infrastructure.class
BigDecimalSubject
Propositions forBigDecimal
typed subjects.class
BooleanSubject
Propositions for boolean subjects.class
ClassSubject
Propositions forClass
subjects.class
ComparableSubject<T extends java.lang.Comparable>
Propositions forComparable
typed subjects.class
DoubleSubject
Propositions forDouble
subjects.class
FloatSubject
Propositions forFloat
subjects.class
GuavaOptionalSubject
Propositions for GuavaOptional
subjects.class
IntegerSubject
Propositions forInteger
subjects.class
IntStreamSubject
Propositions forIntStream
subjects.class
IterableSubject
Propositions forIterable
subjects.class
LongStreamSubject
Propositions forLongStream
subjects.class
LongSubject
Propositions forlong
subjects.class
MapSubject
Propositions forMap
subjects.class
MultimapSubject
Propositions forMultimap
subjects.private static class
MultimapSubject.IterableEntries
class
MultisetSubject
Propositions forMultiset
subjects.class
ObjectArraySubject<T>
A Subject forObject[]
and more genericallyT[]
.class
OptionalDoubleSubject
Propositions for Java 8OptionalDouble
subjects.class
OptionalIntSubject
Propositions for Java 8OptionalInt
subjects.class
OptionalLongSubject
Propositions for Java 8OptionalLong
subjects.class
OptionalSubject
Propositions for Java 8Optional
subjects.class
PathSubject
Assertions forPath
instances.class
PrimitiveBooleanArraySubject
A Subject forboolean[]
.class
PrimitiveByteArraySubject
A Subject forbyte[]
.class
PrimitiveCharArraySubject
A Subject forchar[]
.class
PrimitiveDoubleArraySubject
A Subject fordouble[]
.private class
PrimitiveDoubleArraySubject.IterableSubjectWithInheritedToString
class
PrimitiveFloatArraySubject
A Subject forfloat[]
.private class
PrimitiveFloatArraySubject.IterableSubjectWithInheritedToString
class
PrimitiveIntArraySubject
A Subject forint[]
.class
PrimitiveLongArraySubject
A Subject forlong[]
.class
PrimitiveShortArraySubject
A Subject forshort[]
.class
StreamSubject
Propositions forStream
subjects.class
StringSubject
Propositions for string subjects.class
TableSubject
Propositions forTable
subjects.class
ThrowableSubject
Propositions forThrowable
subjects.class
TruthFailureSubject
Subject forAssertionError
objects thrown by Truth.Fields in com.google.common.truth declared as Subject Modifier and Type Field Description (package private) Subject
FailureMetadata.Step. subject
Methods in com.google.common.truth with type parameters of type Subject Modifier and Type Method Description <S extends Subject,A>
SimpleSubjectBuilder<S,A>StandardSubjectBuilder. about(Subject.Factory<S,A> factory)
Given a factory for someSubject
class, returns a builder whosethat(actual)
method creates instances of that class.static <S extends Subject,T>
SimpleSubjectBuilder<S,T>Truth. assertAbout(Subject.Factory<S,T> factory)
Given a factory for someSubject
class, returns a builder whosethat(actual)
method creates instances of that class.static <S extends Subject,A>
java.lang.AssertionErrorExpectFailure. expectFailureAbout(Subject.Factory<S,A> factory, ExpectFailure.SimpleSubjectBuilderCallback<S,A> assertionCallback)
Static alternative that directly returns the triggered failure.Methods in com.google.common.truth that return Subject Modifier and Type Method Description static Subject
Truth. assertThat(java.lang.Object actual)
Subject
StandardSubjectBuilder. that(java.lang.Object actual)
Methods in com.google.common.truth with parameters of type Subject Modifier and Type Method Description (package private) static FailureMetadata.Step
FailureMetadata.Step. subjectCreation(Subject subject)
(package private) FailureMetadata
FailureMetadata. updateForSubject(Subject subject)
Returns a new instance that includes the given subject in its chain of values.Method parameters in com.google.common.truth with type arguments of type Subject Modifier and Type Method Description private static java.lang.String
Subject. typeDescriptionOrGuess(java.lang.Class<? extends Subject> clazz, java.lang.String typeDescriptionOverride)
Constructors in com.google.common.truth with parameters of type Subject Constructor Description Step(Subject subject, com.google.common.base.Function<java.lang.String,java.lang.String> descriptionUpdate, FailureMetadata.OldAndNewValuesAreSimilar valuesAreSimilar)
-