Uses of Interface
com.google.common.truth.Subject.Factory
-
Packages that use Subject.Factory Package Description com.google.common.truth Truth is a library for performing assertions in tests:com.google.common.truth.extensions.proto Custom subjects for testing Protocol Buffer instances.com.google.common.truth.extensions.re2j -
-
Uses of Subject.Factory in com.google.common.truth
Methods in com.google.common.truth that return Subject.Factory Modifier and Type Method Description static Subject.Factory<IntStreamSubject,IntStream>
IntStreamSubject. intStreams()
Deprecated.Instead ofabout(intStreams()).that(...)
, use justthat(...)
.static Subject.Factory<LongStreamSubject,LongStream>
LongStreamSubject. longStreams()
Deprecated.Instead ofabout(longStreams()).that(...)
, use justthat(...)
.static Subject.Factory<OptionalDoubleSubject,OptionalDouble>
OptionalDoubleSubject. optionalDoubles()
Deprecated.Instead ofabout(optionalDoubles()).that(...)
, use justthat(...)
.static Subject.Factory<OptionalIntSubject,OptionalInt>
OptionalIntSubject. optionalInts()
Deprecated.Instead ofabout(optionalInts()).that(...)
, use justthat(...)
.static Subject.Factory<OptionalLongSubject,OptionalLong>
OptionalLongSubject. optionalLongs()
Deprecated.Instead ofabout(optionalLongs()).that(...)
, use justthat(...)
.static Subject.Factory<OptionalSubject,Optional<?>>
OptionalSubject. optionals()
Deprecated.Instead ofabout(optionals()).that(...)
, use justthat(...)
.static Subject.Factory<PathSubject,Path>
PathSubject. paths()
Deprecated.Instead ofabout(paths()).that(...)
, use justthat(...)
.static Subject.Factory<StreamSubject,Stream<?>>
StreamSubject. streams()
Deprecated.Instead ofabout(streams()).that(...)
, use justthat(...)
.static Subject.Factory<TruthFailureSubject,AssertionError>
TruthFailureSubject. truthFailures()
Factory for creatingTruthFailureSubject
instances.Methods in com.google.common.truth with parameters of type Subject.Factory Modifier and Type Method Description <S extends Subject,A>
SimpleSubjectBuilder<S,A>StandardSubjectBuilder. about(Subject.Factory<S,A> factory)
Given a factory for someSubject
class, returns a builder whosethat(actual)
method creates instances of that class.static <S extends Subject,T>
SimpleSubjectBuilder<S,T>Truth. assertAbout(Subject.Factory<S,T> factory)
Given a factory for someSubject
class, returns a builder whosethat(actual)
method creates instances of that class.static <S extends Subject,A>
AssertionErrorExpectFailure. expectFailureAbout(Subject.Factory<S,A> factory, ExpectFailure.SimpleSubjectBuilderCallback<S,A> assertionCallback)
Static alternative that directly returns the triggered failure. -
Uses of Subject.Factory in com.google.common.truth.extensions.proto
Methods in com.google.common.truth.extensions.proto that return Subject.Factory Modifier and Type Method Description static Subject.Factory<LiteProtoSubject,MessageLite>
LiteProtoTruth. liteProtos()
-
Uses of Subject.Factory in com.google.common.truth.extensions.re2j
Methods in com.google.common.truth.extensions.re2j that return Subject.Factory Modifier and Type Method Description static Subject.Factory<Re2jSubjects.Re2jStringSubject,String>
Re2jSubjects. re2jString()
Returns a subject factory forString
subjects which you can use to assert things aboutPattern
regexes.
-