A common supertype for Array subjects, abstracting some common display and error infrastructure.
An entry that contains a description of how it was created.
A value class to represent a frame.
This is the type used for type inference.
An entry that we know nothing about except for its type.
An entry for a
Subject
(or a similar object derived with a
Subject
, like
Ordered
).
Propositions for boolean subjects.
Propositions for
Class
subjects.
An
AssertionError
(usually a JUnit
ComparisonFailure
, but not under GWT) composed
of structured
Fact
instances and other string messages.
Determines whether an instance of type A
corresponds in some way to an instance of type
E
for the purposes of a test assertion.
A functional interface for a binary predicate, to be used to test whether a pair of objects of
types A
and E
satisfy some condition.
A functional interface to be used format the diff between a pair of objects of types A
and E
.
Helper object to store exceptions encountered while executing a
Correspondence
method.
In a fluent assertion chain, exposes one or more "custom"
that
methods, which accept a
value under test and return a
Subject
.
In a fluent assertion chain, the argument to the "custom" overload of
about
, the method that specifies
what kind of
Subject
to create.
Propositions for
Double
subjects.
A partially specified check about an approximate relationship to a double
subject using
a tolerance.
Supertype of Truth's
AssertionError
subclasses that are created from a list of
Fact
instances.
A TestRule
that batches up all failures encountered during a test, and reports them all
together at the end (similar to ErrorCollector
).
A "functional interface" for
expectFailure()
to invoke and capture
failures.
A string key-value pair in a failure message, such as "expected: abc" or "but was: xyz."
Helper class that wraps a collection of
Fact
instances to make them easier to build.
An opaque, immutable object containing state from the previous calls in the fluent assertion
chain.
Whether the value of the original subject and the value of the derived subject are "similar
enough" that we don't need to display both.
Defines what to do when a check fails.
Propositions for
Float
subjects.
A partially specified check about an approximate relationship to a float
subject using
a tolerance.
Propositions for Guava Optional
subjects.
Whether to output each missing/unexpected item as its own
Fact
or to group all those
items together into a single
Fact
.
A partially specified check in which the actual elements (normally the elements of the
Iterable
under test) are compared to expected elements using a
Correspondence
.
An description of a pairing between expected and actual values.
Propositions for long
subjects.
Propositions for
Map
subjects.
A partially specified check in which the actual values (i.e.
Propositions for Multimap
subjects.
A partially specified check in which the actual values (i.e.
Propositions for Multiset
subjects.
A Subject for Object[]
and more generically T[]
.
Propositions for Java 8
Optional
subjects.
Assertions for
Path
instances.
Wrapping interface of TestRule
to be used within truth.
In a fluent assertion chain, exposes the most common
that
method, which accepts a value
under test and returns a
Subject
.
Enum of the package or class-name based categories of stack frames that might be removed or
collapsed by the cleaner.
Wrapper around a
StackTraceElement
for calculating and holding the metadata used to
clean the stack trace.
Propositions for
Stream
subjects.
Propositions for string subjects.
Case insensitive propositions for string subjects.
An object that lets you perform checks on the value under test.
The result of comparing two objects for equality.
In a fluent assertion chain, the argument to the common overload of
about
, the method that specifies what kind of
Subject
to create.
Missing or unexpected values from a collection assertion, with equal objects grouped together
and, in some cases, type information added.
Propositions for Table
subjects.
An AssertionError
that (a) always supports a cause, even under old versions of Android
and (b) omits "java.lang.AssertionError:" from the beginning of its toString() representation.