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 |
---|---|
static SubjectFactory<IntStreamSubject,IntStream> |
IntStreamSubject.intStreams() |
static SubjectFactory<LongStreamSubject,LongStream> |
LongStreamSubject.longStreams() |
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<PathSubject,Path> |
PathSubject.paths() |
static SubjectFactory<StreamSubject,Stream<?>> |
StreamSubject.streams() |
Modifier and Type | Method and Description |
---|---|
<S extends Subject<S,A>,A> |
StandardSubjectBuilder.about(SubjectFactory<S,A> factory)
Deprecated.
When you switch from
SubjectFactory to Subject.Factory , you'll
switch from this overload to the Subject.Factory overload. |
static <S extends Subject<S,T>,T> |
Truth.assertAbout(SubjectFactory<S,T> factory)
Deprecated.
When you switch from
SubjectFactory to Subject.Factory , you'll
switch from this overload to the Subject.Factory overload. |
static <S extends Subject<S,A>,A> |
ExpectFailure.expectFailureAbout(SubjectFactory<S,A> factory,
ExpectFailure.SimpleSubjectBuilderCallback<S,A> assertionCallback)
Deprecated.
When you switch from
SubjectFactory to Subject.Factory , you'll
switch from this overload to the Subject.Factory overload. |
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.