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 |
Modifier and Type | Class and Description |
---|---|
static class |
AbstractVerb.DelegatedVerb<S extends Subject<S,T>,T>
A special Verb implementation which wraps a SubjectFactory
|
class |
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". |
class |
SubjectFactory<S extends Subject<S,T>,T>
A custom subject factory which will return a FooSubject (which is a
Subject<Foo> ). |
Modifier and Type | Class and Description |
---|---|
class |
AtomicLongMapSubject
Propositions for
AtomicLongMap subjects. |
class |
BigDecimalSubject
Propositions for
BigDecimal typed subjects. |
class |
BooleanSubject
Propositions for boolean subjects.
|
class |
ClassSubject
Propositions for
Class subjects. |
class |
ComparableSubject<S extends ComparableSubject<S,T>,T extends Comparable>
Propositions for
Comparable typed subjects. |
class |
DefaultSubject |
class |
DoubleSubject
Propositions for
Double subjects. |
class |
FloatSubject
Propositions for
Float subjects. |
class |
GuavaOptionalSubject
Propositions for Guava
Optional subjects. |
class |
IntegerSubject
Propositions for
Integer subjects. |
class |
IterableSubject
Propositions for
Iterable subjects. |
class |
ListMultimapSubject
Type-specific extensions of
Multimap subjects for ListMultimap subjects. |
class |
LongSubject
Propositions for
long subjects. |
class |
MapSubject
Propositions for
Map subjects. |
class |
MultimapSubject
Propositions for
Multimap subjects. |
class |
MultisetSubject
Propositions for
Multiset subjects. |
class |
ObjectArraySubject<T>
A Subject to handle testing propositions for
Object[] and more generically T[] . |
class |
OptionalDoubleSubject
Propositions for Java 8
OptionalDouble subjects. |
class |
OptionalIntSubject
Propositions for Java 8
OptionalInt subjects. |
class |
OptionalLongSubject
Propositions for Java 8
OptionalLong subjects. |
class |
OptionalSubject
Propositions for Java 8
Optional subjects. |
class |
PrimitiveBooleanArraySubject
A Subject to handle testing propositions for
boolean[] . |
class |
PrimitiveByteArraySubject
A Subject to handle testing propositions for
byte[] . |
class |
PrimitiveCharArraySubject
A Subject to handle testing propositions for
char[] . |
class |
PrimitiveDoubleArraySubject
A Subject to handle testing propositions for
double[] . |
class |
PrimitiveFloatArraySubject
A Subject to handle testing propositions for
float[] . |
class |
PrimitiveIntArraySubject
A Subject to handle testing propositions for
int[] . |
class |
PrimitiveLongArraySubject
A Subject to handle testing propositions for
long[] . |
class |
PrimitiveShortArraySubject
A Subject to handle testing propositions for
short[] . |
class |
SetMultimapSubject
Type-specific extensions of
Multimap subjects for SetMultimap subjects. |
class |
SortedMapSubject
Tests for
SortedMap and NavigableMap objects. |
class |
SortedSetSubject
Tests for
SortedSet and NavigableSet objects. |
class |
StreamSubject
Propositions for
Stream subjects. |
class |
StringSubject
Propositions for string subjects.
|
class |
TableSubject
Propositions for
Table subjects. |
class |
ThrowableSubject
Propositions for
Throwable subjects. |
Modifier and Type | Method and Description |
---|---|
<S extends Subject<S,T>,T,SF extends SubjectFactory<S,T>> |
AbstractVerb.about(SF factory)
The recommended method of extension of Truth to new types, which is documented in
com.google.common.truth.delegation.DelegationTest . |
static <S extends Subject<S,T>,T> |
Truth.assertAbout(SubjectFactory<S,T> factory)
The recommended method of extension of Truth to new types, which is documented in
com.google.common.truth.delegation.DelegationTest . |
Modifier and Type | Method and Description |
---|---|
static Subject<DefaultSubject,Object> |
Truth.assertThat(Object target) |
Subject<DefaultSubject,Object> |
TestVerb.that(Object target) |
Modifier and Type | Class and Description |
---|---|
class |
IterableOfProtosSubject<S extends IterableOfProtosSubject<S,M,C>,M extends com.google.protobuf.Message,C extends Iterable<M>>
Truth subject for the iterables of protocol buffers.
|
static class |
IterableOfProtosSubject.IterableOfMessagesSubject<M extends com.google.protobuf.Message>
Default implementation of
IterableOfProtosSubject . |
class |
ListMultimapWithProtoValuesSubject<S extends ListMultimapWithProtoValuesSubject<S,K,M,C>,K,M extends com.google.protobuf.Message,C extends com.google.common.collect.ListMultimap<K,M>>
Type-specific extension of
MultimapWithProtoValuesSubject , used to detect bad usages of
ListMultimapWithProtoValuesSubject.isEqualTo(com.google.common.collect.SetMultimap<?, ?>) . |
static class |
ListMultimapWithProtoValuesSubject.ListMultimapWithMessageValuesSubject<K,M extends com.google.protobuf.Message>
Default implementation of
ListMultimapWithProtoValuesSubject . |
class |
LiteProtoSubject<S extends LiteProtoSubject<S,M>,M extends com.google.protobuf.MessageLite>
Truth subjects for the Lite version of Protocol Buffers.
|
class |
MapWithProtoValuesSubject<S extends MapWithProtoValuesSubject<S,K,M,C>,K,M extends com.google.protobuf.Message,C extends Map<K,M>>
Truth subject for maps with protocol buffers for values.
|
static class |
MapWithProtoValuesSubject.MapWithMessageValuesSubject<K,M extends com.google.protobuf.Message>
Default implementation of
MapWithProtoValuesSubject . |
class |
MultimapWithProtoValuesSubject<S extends MultimapWithProtoValuesSubject<S,K,M,C>,K,M extends com.google.protobuf.Message,C extends com.google.common.collect.Multimap<K,M>>
Truth subject for
Multimap s with protocol buffers for values. |
static class |
MultimapWithProtoValuesSubject.MultimapWithMessageValuesSubject<K,M extends com.google.protobuf.Message>
Default implementation of
MultimapWithProtoValuesSubject . |
class |
ProtoSubject<S extends ProtoSubject<S,M>,M extends com.google.protobuf.Message>
Truth subject for the full version of Protocol Buffers.
|
class |
SetMultimapWithProtoValuesSubject<S extends SetMultimapWithProtoValuesSubject<S,K,M,C>,K,M extends com.google.protobuf.Message,C extends com.google.common.collect.SetMultimap<K,M>>
Type-specific extension of
MultimapWithProtoValuesSubject , used to detect bad usages of
SetMultimapWithProtoValuesSubject.isEqualTo(com.google.common.collect.ListMultimap<?, ?>) . |
static class |
SetMultimapWithProtoValuesSubject.SetMultimapWithMessageValuesSubject<K,M extends com.google.protobuf.Message>
Default implementation of
SetMultimapWithProtoValuesSubject . |
Modifier and Type | Class and Description |
---|---|
static class |
Re2jSubjects.Re2jStringSubject
Subject for
String subjects which you can use to assert things about Pattern regexes. |
Copyright © 2017. All rights reserved.