Uses of Interface
com.google.common.truth.Subject.Factory
-
-
Uses of Subject.Factory in com.google.common.truth
Fields in com.google.common.truth declared as Subject.Factory Modifier and Type Field Description private static Subject.Factory<TruthFailureSubject,java.lang.AssertionError>
TruthFailureSubject. FACTORY
private Subject.Factory<SubjectT,ActualT>
SimpleSubjectBuilder. subjectFactory
Methods in com.google.common.truth that return Subject.Factory Modifier and Type Method Description static Subject.Factory<IntStreamSubject,java.util.stream.IntStream>
IntStreamSubject. intStreams()
private Subject.Factory<IterableSubject,java.lang.Iterable<?>>
MultimapSubject. iterableEntries()
private Subject.Factory<IterableSubject,java.lang.Iterable<?>>
PrimitiveDoubleArraySubject. iterablesWithCustomDoubleToString()
private Subject.Factory<IterableSubject,java.lang.Iterable<?>>
PrimitiveFloatArraySubject. iterablesWithCustomFloatToString()
static Subject.Factory<LongStreamSubject,java.util.stream.LongStream>
LongStreamSubject. longStreams()
static Subject.Factory<OptionalDoubleSubject,java.util.OptionalDouble>
OptionalDoubleSubject. optionalDoubles()
static Subject.Factory<OptionalIntSubject,java.util.OptionalInt>
OptionalIntSubject. optionalInts()
static Subject.Factory<OptionalLongSubject,java.util.OptionalLong>
OptionalLongSubject. optionalLongs()
static Subject.Factory<OptionalSubject,java.util.Optional<?>>
OptionalSubject. optionals()
static Subject.Factory<PathSubject,java.nio.file.Path>
PathSubject. paths()
static Subject.Factory<StreamSubject,java.util.stream.Stream<?>>
StreamSubject. streams()
static Subject.Factory<TruthFailureSubject,java.lang.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>
java.lang.AssertionErrorExpectFailure. expectFailureAbout(Subject.Factory<S,A> factory, ExpectFailure.SimpleSubjectBuilderCallback<S,A> assertionCallback)
Static alternative that directly returns the triggered failure.Constructors in com.google.common.truth with parameters of type Subject.Factory Constructor Description SimpleSubjectBuilder(FailureMetadata metadata, Subject.Factory<SubjectT,ActualT> subjectFactory)
-