Package | Description |
---|---|
com.google.common.truth |
Truth is an open source, fluent testing framework for Java that is designed to make your test
assertions and failure messages more readable.
|
com.google.common.truth.extensions.proto |
Custom subjects for testing Protocol
Buffer instances.
|
com.google.common.truth.extensions.re2j |
Class and Description |
---|
AbstractDelegatedVerb
Deprecated.
This class is being renamed to
CustomSubjectBuilder . |
AbstractFailureStrategy
A skeletal implementation of
FailureStrategy that defines AbstractFailureStrategy.fail(String) and both
#failComparing methods in terms of FailureStrategy.fail(String, Throwable) . |
AbstractVerb
Deprecated.
Instead of subclassing
AbstractVerb , subclass CustomSubjectBuilder .
CustomSubjectBuilder is the new way of defining custom that() methods, and it
doesn't require you to write boilerplate to store and propagate the failure message. |
AbstractVerb.DelegatedVerb
Deprecated.
This class is being renamed to
SimpleSubjectBuilder . |
AtomicLongMapSubject
Propositions for
AtomicLongMap subjects. |
BigDecimalSubject
Propositions for
BigDecimal typed subjects. |
BooleanSubject
Propositions for boolean subjects.
|
ClassSubject
Propositions for
Class subjects. |
ComparableSubject
Propositions for
Comparable typed subjects. |
Correspondence
Determines whether an instance of type
A corresponds in some way to an instance of type
E . |
CustomSubjectBuilder
In a fluent assertion chain, exposes one or more "custom"
that methods, which accept a
value under test and return a Subject . |
CustomSubjectBuilderFactory |
DefaultSubject |
DelegatedVerbFactory
Deprecated.
This class is being renamed to
CustomSubjectBuilderFactory . |
DoubleSubject
Propositions for
Double subjects. |
DoubleSubject.TolerantDoubleComparison
A partially specified proposition about an approximate relationship to a
double subject
using a tolerance. |
Expect
A
TestRule that batches up all failures encountered during a test, and reports them all
together at the end. |
Expect.ExpectationGatherer
Deprecated.
To provide your own failure handling, use
StandardSubjectBuilder.forCustomFailureStrategy(new AbstractFailureStrategy() { ... })
instead of Expect.create(new ExpectationGatherer() { ... }) . Or, if you're testing
that assertions on a custom Subject fail (using ExpectationGatherer to
capture the failures), use ExpectFailure . |
ExpectFailure.AssertionCallback
Deprecated.
Implement
ExpectFailure.StandardSubjectBuilderCallback , which is identical except that
its parameter is a StandardSubjectBuilder , the new name of TestVerb . |
ExpectFailure.DelegatedAssertionCallback
Deprecated.
Implement
ExpectFailure.SimpleSubjectBuilderCallback , which is identical except that its
parameter is of SimpleSubjectBuilder , the new name of AbstractVerb.DelegatedVerb . |
ExpectFailure.SimpleSubjectBuilderCallback
A "functional interface" for
expectFailureAbout() to invoke and
capture failures. |
ExpectFailure.StandardSubjectBuilderCallback
A "functional interface" for
expectFailure() to invoke and capture
failures. |
FailureContext
Deprecated.
If you are using this class to store and propagate the failure message as part of
subclassing
AbstractVerb or TestVerb , you will no longer need it when you
migrate away from those classes, as described in their deprecation text. |
FailureStrategy
Defines what to do when a check fails.
|
FloatSubject
Propositions for
Float subjects. |
FloatSubject.TolerantFloatComparison
A partially specified proposition about an approximate relationship to a
float subject
using a tolerance. |
GuavaOptionalSubject
Propositions for Guava
Optional subjects. |
IntegerSubject
Propositions for
Integer subjects. |
IntStreamSubject
Propositions for
IntStream subjects. |
IterableSubject
Propositions for
Iterable subjects. |
IterableSubject.UsingCorrespondence
A partially specified proposition in which the actual elements (normally the elements of the
Iterable under test) are compared to expected elements using a Correspondence . |
ListMultimapSubject
Type-specific extensions of
Multimap subjects for ListMultimap subjects. |
LongStreamSubject
Propositions for
LongStream subjects. |
LongSubject
Propositions for
long subjects. |
MapSubject
Propositions for
Map subjects. |
MapSubject.UsingCorrespondence
A partially specified proposition in which the actual values (i.e.
|
MultimapSubject
Propositions for
Multimap subjects. |
MultimapSubject.UsingCorrespondence
A partially specified proposition in which the actual values (i.e.
|
MultisetSubject
Propositions for
Multiset subjects. |
ObjectArraySubject
A Subject to handle testing propositions for
Object[] and more generically T[] . |
OptionalDoubleSubject
Propositions for Java 8
OptionalDouble subjects. |
OptionalIntSubject
Propositions for Java 8
OptionalInt subjects. |
OptionalLongSubject
Propositions for Java 8
OptionalLong subjects. |
OptionalSubject
Propositions for Java 8
Optional subjects. |
Ordered
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. |
PathSubject
Assertions for
Path instances. |
PrimitiveBooleanArraySubject
A Subject to handle testing propositions for
boolean[] . |
PrimitiveByteArraySubject
A Subject to handle testing propositions for
byte[] . |
PrimitiveCharArraySubject
A Subject to handle testing propositions for
char[] . |
PrimitiveDoubleArraySubject
A Subject to handle testing propositions for
double[] . |
PrimitiveDoubleArraySubject.DoubleArrayAsIterable
A partially specified proposition for doing assertions on the array similar to the assertions
supported for
Iterable subjects, 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) . |
PrimitiveDoubleArraySubject.TolerantPrimitiveDoubleArrayComparison
A partially specified proposition about an approximate relationship to a
double[]
subject using a tolerance. |
PrimitiveFloatArraySubject
A Subject to handle testing propositions for
float[] . |
PrimitiveFloatArraySubject.FloatArrayAsIterable
A partially specified proposition for doing assertions on the array similar to the assertions
supported for
Iterable subjects, 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) . |
PrimitiveFloatArraySubject.TolerantPrimitiveFloatArrayComparison
A partially specified proposition about an approximate relationship to a
float[]
subject using a tolerance. |
PrimitiveIntArraySubject
A Subject to handle testing propositions for
int[] . |
PrimitiveLongArraySubject
A Subject to handle testing propositions for
long[] . |
PrimitiveShortArraySubject
A Subject to handle testing propositions for
short[] . |
SetMultimapSubject
Type-specific extensions of
Multimap subjects for SetMultimap subjects. |
SimpleSubjectBuilder
In a fluent assertion chain, exposes the most common
that method, which accepts a value
under test and returns a Subject . |
SortedMapSubject
Tests for
SortedMap and NavigableMap objects. |
SortedSetSubject
Tests for
SortedSet and NavigableSet objects. |
StandardSubjectBuilder
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) . |
StreamSubject
Propositions for
Stream subjects. |
StringSubject
Propositions for string subjects.
|
Subject
An object that lets you perform checks on the value under test.
|
SubjectFactory |
TableSubject
Propositions for
Table subjects. |
TestVerb
Deprecated.
Instead of subclassing
TestVerb , subclass CustomSubjectBuilder .
CustomSubjectBuilder is the new way of defining custom that() methods, and it
doesn't require you to write boilerplate to store and propagate the failure message. |
ThrowableSubject
Propositions for
Throwable subjects. |
Class and Description |
---|
AbstractDelegatedVerb
Deprecated.
This class is being renamed to
CustomSubjectBuilder . |
Correspondence
Determines whether an instance of type
A corresponds in some way to an instance of type
E . |
DelegatedVerbFactory
Deprecated.
This class is being renamed to
CustomSubjectBuilderFactory . |
FailureStrategy
Defines what to do when a check fails.
|
IntegerSubject
Propositions for
Integer subjects. |
IterableSubject.UsingCorrespondence
A partially specified proposition in which the actual elements (normally the elements of the
Iterable under test) are compared to expected elements using a Correspondence . |
MapSubject.UsingCorrespondence
A partially specified proposition in which the actual values (i.e.
|
MultimapSubject.UsingCorrespondence
A partially specified proposition in which the actual values (i.e.
|
Ordered
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. |
Subject
An object that lets you perform checks on the value under test.
|
SubjectFactory |
Class and Description |
---|
Subject
An object that lets you perform checks on the value under test.
|
SubjectFactory |
Copyright © 2017. All rights reserved.