@CheckReturnValue
See: Description
Interface | Description |
---|---|
Correspondence.BinaryPredicate<A,E> |
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. |
Correspondence.DiffFormatter<A,E> |
A functional interface to be used format the diff between a pair of objects of types
A
and E . |
CustomSubjectBuilder.Factory<CustomSubjectBuilderT extends CustomSubjectBuilder> | |
ExpectFailure.SimpleSubjectBuilderCallback<S extends Subject,A> |
A "functional interface" for
expectFailureAbout() to invoke and
capture failures. |
ExpectFailure.StandardSubjectBuilderCallback |
A "functional interface" for
expectFailure() to invoke and capture
failures. |
FailureStrategy |
Defines what to do when a check fails.
|
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,ActualT> |
Class | Description |
---|---|
AtomicLongMapSubject | Deprecated
Perform assertions on the
AtomicLongMap.asMap() view. |
BigDecimalSubject |
Propositions for
BigDecimal typed subjects. |
BooleanSubject |
Propositions for boolean subjects.
|
ClassSubject |
Propositions for
Class subjects. |
ComparableSubject<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 for the purposes of a test assertion. |
CustomSubjectBuilder |
In a fluent assertion chain, exposes one or more "custom"
that methods, which accept a
value under test and return a Subject . |
DefaultSubject | Deprecated
Use plain
Subject instead. |
DoubleSubject |
Propositions for
Double subjects. |
DoubleSubject.TolerantDoubleComparison |
A partially specified check 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 (similar to ErrorCollector ). |
ExpectFailure |
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. |
Fact |
A string key-value pair in a failure message, such as "expected: abc" or "but was: xyz."
|
FailureMetadata |
An opaque, immutable object containing state from the previous calls in the fluent assertion
chain.
|
FloatSubject |
Propositions for
Float subjects. |
FloatSubject.TolerantFloatComparison |
A partially specified check 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,E> |
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 . |
LongStreamSubject |
Propositions for
LongStream subjects. |
LongSubject |
Propositions for
long subjects. |
MapSubject |
Propositions for
Map subjects. |
MultimapSubject |
Propositions for
Multimap subjects. |
MultisetSubject |
Propositions for
Multiset subjects. |
ObjectArraySubject<T> |
A Subject 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 for
boolean[] . |
PrimitiveByteArraySubject |
A Subject for
byte[] . |
PrimitiveCharArraySubject |
A Subject for
char[] . |
PrimitiveDoubleArraySubject |
A Subject for
double[] . |
PrimitiveDoubleArraySubject.DoubleArrayAsIterable |
A partially specified check 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) . |
PrimitiveFloatArraySubject |
A Subject for
float[] . |
PrimitiveFloatArraySubject.FloatArrayAsIterable |
A partially specified check 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) . |
PrimitiveIntArraySubject |
A Subject for
int[] . |
PrimitiveLongArraySubject |
A Subject for
long[] . |
PrimitiveShortArraySubject |
A Subject for
short[] . |
SimpleSubjectBuilder<SubjectT extends Subject,ActualT> |
In a fluent assertion chain, exposes the most common
that method, which accepts a value
under test and returns a Subject . |
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.
|
TableSubject |
Propositions for
Table subjects. |
ThrowableSubject |
Propositions for
Throwable subjects. |
Truth |
The primary entry point for Truth, a library for fluent test
assertions.
|
Truth8 |
The primary entry point for assertions about Java 8 types.
|
TruthFailureSubject |
Subject for
AssertionError objects thrown by Truth. |
TruthJUnit |
Provides a way to use Truth to perform JUnit "assumptions." An assumption is a check that, if
false, aborts (skips) the test.
|
Copyright © 2019. All rights reserved.