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 Subject.Factory<IntStreamSubject,java.util.stream.IntStream> |
IntStreamSubject.intStreams() |
static Subject.Factory<LongStreamSubject,java.util.stream.LongStream> |
LongStreamSubject.longStreams() |
static Subject.Factory<OptionalDoubleSubject,OptionalDouble> |
OptionalDoubleSubject.optionalDoubles() |
static Subject.Factory<OptionalIntSubject,OptionalInt> |
OptionalIntSubject.optionalInts() |
static Subject.Factory<OptionalLongSubject,OptionalLong> |
OptionalLongSubject.optionalLongs() |
static Subject.Factory<OptionalSubject,Optional<?>> |
OptionalSubject.optionals() |
static Subject.Factory<PathSubject,Path> |
PathSubject.paths() |
static Subject.Factory<StreamSubject,java.util.stream.Stream<?>> |
StreamSubject.streams() |
Modifier and Type | Method and Description |
---|---|
<S extends Subject<S,A>,A> |
StandardSubjectBuilder.about(Subject.Factory<S,A> factory)
Given a factory for some
Subject class, returns a builder whose that(actual)
method creates instances of that class. |
static <S extends Subject<S,T>,T> |
Truth.assertAbout(Subject.Factory<S,T> factory)
Given a factory for some
Subject class, returns a builder whose that(actual)
method creates instances of that class. |
static <S extends Subject<S,A>,A> |
ExpectFailure.expectFailureAbout(Subject.Factory<S,A> factory,
ExpectFailure.SimpleSubjectBuilderCallback<S,A> assertionCallback)
Static alternative that directly returns the triggered failure.
|
Modifier and Type | Class and Description |
---|---|
static class |
LiteProtoSubject.Factory<S extends LiteProtoSubject<S,M>,M extends com.google.protobuf.MessageLite>
Typed extension of
Subject.Factory . |
Modifier and Type | Method and Description |
---|---|
static Subject.Factory<Re2jSubjects.Re2jStringSubject,String> |
Re2jSubjects.re2jString()
Returns a subject factory for
String subjects which you can use to assert things about
Pattern regexes. |
Copyright © 2018. All rights reserved.