All Classes and Interfaces
Class
Description
A subject for
BigDecimal
values.A subject for
Boolean
values.A subject for
Class
values.A subject for
Comparable
values.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
.In a fluent assertion chain, exposes one or more "custom"
that
methods, which accept a
value under test and return a Subject
.A subject for
Double
values.A partially specified check about an approximate relationship to a
double
value using a
tolerance.A
TestRule
that batches up all failures encountered during a test, and reports them all
together at the end (similar to ErrorCollector
).A utility for testing that assertions against a custom
Subject
fail when they should,
plus a utility to assert about parts of the resulting failure messages.A functional interface for
expectFailureAbout()
to invoke and
capture failures.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."
An opaque, immutable object containing state from the previous calls in the fluent assertion
chain.
Defines what to do when a check fails.
An immutable, abstract representation of a set of specific field paths.
Factory class for
FieldScope
instances.A subject for
Float
values.A partially specified check about an approximate relationship to a
float
value using a
tolerance.A subject for Guava
Optional
values.A subject for
Integer
values.A partially specified check about an approximate relationship to a
int
actual value
using a tolerance.A subject for
IntStream
values.Fluent API to perform detailed, customizable comparison of iterables of protocol buffers.
Truth subject for the iterables of protocol buffers.
Comparison methods, which enforce the rules set in prior calls to
IterableOfProtosFluentAssertion
.A subject for
Iterable
values.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
.Truth subjects for the Lite version of Protocol Buffers.
A set of static methods to begin a Truth assertion chain for the lite version of protocol
buffers.
A subject for
LongStream
values.A subject for
Long
values.A partially specified check about an approximate relationship to a
long
value using a
tolerance.A subject for
Map
values.A partially specified check in which the actual values (i.e. the values of the
Map
under test) are compared to expected values using a Correspondence
.Fluent API to perform detailed, customizable comparison of maps containing protocol buffers as
values.
Truth subject for maps with protocol buffers for values.
A subject for
Multimap
values.A partially specified check in which the actual values (i.e. the values of the
Multimap
under test) are compared to expected values using a Correspondence
.Fluent API to perform detailed, customizable comparison of
Multimap
s containing protocol
buffers as values.Truth subject for
Multimap
s with protocol buffers for values.A subject for
Multiset
values.A subject for
Object[]
and more generically T[]
.A subject for
OptionalDouble
values.A subject for
OptionalInt
values.A subject for
OptionalLong
values.A subject for
Optional
values.Returned by calls like
IterableSubject.containsExactly(java.lang.Object...)
, Ordered
lets the caller
additionally check that the expected elements were present in the order they were passed to the
previous calls.A subject for
Path
values.A subject for
boolean[]
values.A subject for
byte[]
values.A subject for
char[]
values.A subject for
double[]
values.A partially specified check for doing assertions on the array similar to the assertions
supported for
Iterable
values, in which the elements of the array under test are
compared to expected elements using either exact or tolerant double equality: see PrimitiveDoubleArraySubject.usingExactEquality()
and PrimitiveDoubleArraySubject.usingTolerance(double)
.A subject for
float[]
values.A partially specified check for doing assertions on the array similar to the assertions
supported for
Iterable
values, in which the elements of the array under test are
compared to expected elements using either exact or tolerant float equality: see PrimitiveFloatArraySubject.usingExactEquality()
and PrimitiveFloatArraySubject.usingTolerance(double)
.A subject for
int[]
values.A subject for
long[]
values.A subject for
short[]
values.Fluent API to perform detailed, customizable comparison of Protocol buffers.
Truth subject for the full version of Protocol Buffers.
CustomSubjectBuilder
which aggregates all Proto-related Subject
classes into a single place.A set of static methods to begin a Truth assertion chain for protocol buffers.
Truth subjects for re2j regular expressions.
Subject for
String
subjects which you can use to assert things about Pattern
regexes.In a fluent assertion chain, exposes the most common
that
method, which accepts a value
under test and returns a Subject
.In a fluent assertion chain, an object with which you can do any of the following:
Set an optional message with
StandardSubjectBuilder.withMessage(java.lang.String)
.A subject for
Stream
values.A subject for
String
values.Offers case-insensitive checks for string values.
An object that lets you perform checks on the value under test.
A subject for
Table
values.A subject for
Throwable
values.The primary entry point for Truth, a library for fluent test
assertions.
Deprecated.
A subject for
AssertionError
objects thrown by Truth.Provides a way to use Truth to perform JUnit "assumptions."
Truth
class.