@CheckReturnValue @ParametersAreNonnullByDefault
See: Description
Interface | Description |
---|---|
DelegatedVerbFactory<V extends AbstractDelegatedVerb<V>> |
A generic version of
SubjectFactory which defines its own verb type. |
ExpectFailure.AssertionCallback |
A "functional interface" for
expectFailure() to invoke and capture
failures. |
ExpectFailure.DelegatedAssertionCallback<S extends Subject<S,D>,D> |
A "functional interface" for
expectFailureAbout() to invoke and
capture failures. |
Ordered |
Class | Description |
---|---|
AbstractDelegatedVerb<V extends AbstractDelegatedVerb<V>> |
An extendable type that allows plugin creators to define their own
that() methods for the
Truth SPI. |
AbstractFailureStrategy |
A skeletal implementation of
FailureStrategy that defines AbstractFailureStrategy.fail(String) and
AbstractFailureStrategy.failComparing(java.lang.String, java.lang.CharSequence, java.lang.CharSequence) in terms of FailureStrategy.fail(String, Throwable) . |
AbstractVerb<T extends AbstractVerb<T>> |
A parent type for some infrastructure used in the Verb.
|
AbstractVerb.DelegatedVerb<S extends Subject<S,T>,T> |
A special Verb implementation which wraps a SubjectFactory
|
AbstractVerb.MessagePrependingFailureStrategy | |
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 . |
DefaultSubject | |
DoubleSubject |
Propositions for
Double subjects. |
DoubleSubject.TolerantDoubleComparison |
A partially specified proposition about an approximate relationship to a
double subject
using a tolerance. |
Expect | |
Expect.ExpectationGatherer | |
ExpectFailure |
An assertion strategy that expects the given assertion to fail, and captures the failure rather
than throwing it.
|
FailureContext |
An abstract type which holds a context message and formats it on demand.
|
FailureStrategy |
A
FailureStrategy defines how assertion failures are handled. |
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. |
IterableSubject |
Propositions for
Iterable subjects. |
ListMultimapSubject |
Type-specific extensions of
Multimap subjects for ListMultimap 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. |
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. |
SortedMapSubject |
Tests for
SortedMap and NavigableMap objects. |
SortedSetSubject |
Tests for
SortedSet and NavigableSet objects. |
StreamSubject |
Propositions for
Stream subjects. |
StringSubject |
Propositions for string subjects.
|
Subject<S extends Subject<S,T>,T> |
A
Subject in Truth fits into the assertion fluent chain, taking the place of the
"subject of the test". |
SubjectFactory<S extends Subject<S,T>,T> |
A custom subject factory which will return a FooSubject (which is a
Subject<Foo> ). |
TableSubject |
Propositions for
Table subjects. |
TestVerb | |
ThrowableSubject |
Propositions for
Throwable subjects. |
Truth |
Truth - a proposition framework for tests, supporting JUnit style assertion and assumption
semantics in a fluent style.
|
Truth8 |
A set of static methods to begin a Truth assertion chain for types that require java8.
|
TruthJUnit |
Truth - a proposition framework for tests, supporting JUnit style assertion and assumption
semantics in a fluent style.
|
This package is a part of the open-source Truth library.
Copyright © 2017. All rights reserved.