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.FactoryModifier and TypeFieldDescriptionprivate static final Subject.Factory<TruthFailureSubject, AssertionError> TruthFailureSubject.FACTORYprivate final Subject.Factory<SubjectT, ActualT> SimpleSubjectBuilder.subjectFactoryMethods in com.google.common.truth that return Subject.FactoryModifier and TypeMethodDescriptionstatic Subject.Factory<IntStreamSubject, IntStream> IntStreamSubject.intStreams()private Subject.Factory<IterableSubject, Iterable<?>> MultimapSubject.iterableEntries()private Subject.Factory<IterableSubject, Iterable<?>> PrimitiveDoubleArraySubject.iterablesWithCustomDoubleToString()private Subject.Factory<IterableSubject, Iterable<?>> PrimitiveFloatArraySubject.iterablesWithCustomFloatToString()LongStreamSubject.longStreams()OptionalDoubleSubject.optionalDoubles()OptionalIntSubject.optionalInts()OptionalLongSubject.optionalLongs()static Subject.Factory<OptionalSubject, Optional<?>> OptionalSubject.optionals()static Subject.Factory<PathSubject, Path> PathSubject.paths()static Subject.Factory<StreamSubject, Stream<?>> StreamSubject.streams()TruthFailureSubject.truthFailures()Factory for creatingTruthFailureSubjectinstances.Methods in com.google.common.truth with parameters of type Subject.FactoryModifier and TypeMethodDescriptionfinal <S extends Subject,A>
SimpleSubjectBuilder<S, A> StandardSubjectBuilder.about(Subject.Factory<S, A> factory) Given a factory for someSubjectclass, 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 someSubjectclass, 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.Constructors in com.google.common.truth with parameters of type Subject.FactoryModifierConstructorDescription(package private)SimpleSubjectBuilder(FailureMetadata metadata, Subject.Factory<SubjectT, ActualT> subjectFactory)