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 | 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 . |
Modifier and Type | Method and Description |
---|---|
static SubjectFactory<OptionalDoubleSubject,OptionalDouble> |
OptionalDoubleSubject.optionalDoubles() |
static SubjectFactory<OptionalIntSubject,OptionalInt> |
OptionalIntSubject.optionalInts() |
static SubjectFactory<OptionalLongSubject,OptionalLong> |
OptionalLongSubject.optionalLongs() |
static SubjectFactory<OptionalSubject,Optional<?>> |
OptionalSubject.optionals() |
static SubjectFactory<StreamSubject,Stream<?>> |
StreamSubject.streams() |
Modifier and Type | Method and Description |
---|---|
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 . |
Constructor and Description |
---|
DelegatedVerb(FailureStrategy failureStrategy,
SubjectFactory<S,T> subjectFactory) |
Modifier and Type | Class and Description |
---|---|
static class |
LiteProtoSubject.Factory<S extends LiteProtoSubject<S,M>,M extends com.google.protobuf.MessageLite>
Typed extension of
SubjectFactory . |
Modifier and Type | Method and Description |
---|---|
static SubjectFactory<Re2jSubjects.Re2jStringSubject,String> |
Re2jSubjects.re2jString()
Returns a subject factory for
String subjects which you can use to assert things about
Pattern regexes. |
Copyright © 2017. All rights reserved.