@CheckReturnValue @ParametersAreNonnullByDefault
See: Description
Interface | Description |
---|---|
CustomSubjectBuilder.Factory<CustomSubjectBuilderT extends CustomSubjectBuilder> | |
CustomSubjectBuilderFactory<CustomSubjectBuilderT extends CustomSubjectBuilder> | Deprecated
When you switch your
Subject implementations from accepting a FailureStrategy to accepting a FailureMetadata , you'll switch their CustomSubjectBuilder to start using FailureMetadata , too, and so you'll switch to
creating it with CustomSubjectBuilder.Factory instead of CustomSubjectBuilderFactory . |
ExpectFailure.SimpleSubjectBuilderCallback<S extends Subject<S,A>,A> |
A "functional interface" for
expectFailureAbout() to invoke and
capture failures. |
ExpectFailure.StandardSubjectBuilderCallback |
A "functional interface" for
expectFailure() to invoke and capture
failures. |
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.Factory<SubjectT extends Subject<SubjectT,ActualT>,ActualT> |
Class | Description |
---|---|
AbstractFailureStrategy |
A skeletal implementation of
FailureStrategy that defines AbstractFailureStrategy.fail(String) and both
#failComparing methods in terms of FailureStrategy.fail(String, Throwable) . |
AtomicLongMapSubject |
Propositions for
AtomicLongMap subjects. |
BigDecimalSubject |
Propositions for
BigDecimal typed subjects. |
BooleanSubject |
Propositions for boolean subjects.
|
ClassSubject |
Propositions for
Class subjects. |
ComparableSubject<S extends ComparableSubject<S,T>,T extends Comparable> |
Propositions for
Comparable typed subjects. |
Correspondence<A,E> |
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 . |
DefaultSubject | |
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. |
ExpectFailure |
A utility for testing that assertions against a custom
Subject fail when they should. |
FailureMetadata |
An opaque, immutable object containing state from the previous calls in the fluent assertion
chain.
|
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. |
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. |
MathUtil |
Math utilities to be shared by numeric subjects.
|
MultimapSubject |
Propositions for
Multimap subjects. |
MultisetSubject |
Propositions for
Multiset subjects. |
ObjectArraySubject<T> |
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. |
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<SubjectT extends Subject<SubjectT,ActualT>,ActualT> |
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<S extends Subject<S,T>,T> |
An object that lets you perform checks on the value under test.
|
SubjectFactory<SubjectT extends Subject<SubjectT,ActualT>,ActualT> | Deprecated
When you switch your
Subject implementations from accepting a FailureStrategy to accepting a FailureMetadata , you'll switch their factories to
Subject.Factory instead of SubjectFactory . |
TableSubject |
Propositions for
Table subjects. |
ThrowableSubject |
Propositions for
Throwable subjects. |
Truth |
The primary entry point for Truth, a fluent framework for test assertions.
|
Truth8 |
A set of static methods to begin a Truth assertion chain for types that require java8.
|
TruthJUnit |
Provides a way to use Truth to perform JUnit "assumptions." An assumption is a check that, if
false, aborts (skips) the test.
|
This package is a part of the open-source Truth library.
Copyright © 2017. All rights reserved.