Uses of Class
com.google.common.truth.Subject
-
-
Uses of Subject in com.google.common.truth
Classes in com.google.common.truth with type parameters of type Subject Modifier and Type Interface Description static interfaceExpectFailure.SimpleSubjectBuilderCallback<S extends Subject,A>A "functional interface" forexpectFailureAbout()to invoke and capture failures.classSimpleSubjectBuilder<SubjectT extends Subject,ActualT>In a fluent assertion chain, exposes the most commonthatmethod, which accepts a value under test and returns aSubject.static interfaceSubject.Factory<SubjectT extends Subject,ActualT>Subclasses of Subject in com.google.common.truth Modifier and Type Class Description (package private) classAbstractArraySubjectA common supertype for Array subjects, abstracting some common display and error infrastructure.classBigDecimalSubjectPropositions forBigDecimaltyped subjects.classBooleanSubjectPropositions for boolean subjects.classClassSubjectPropositions forClasssubjects.classComparableSubject<T extends java.lang.Comparable>Propositions forComparabletyped subjects.classDoubleSubjectPropositions forDoublesubjects.classFloatSubjectPropositions forFloatsubjects.classGuavaOptionalSubjectPropositions for GuavaOptionalsubjects.classIntegerSubjectPropositions forIntegersubjects.classIntStreamSubjectPropositions forIntStreamsubjects.classIterableSubjectPropositions forIterablesubjects.classLongStreamSubjectPropositions forLongStreamsubjects.classLongSubjectPropositions forlongsubjects.classMapSubjectPropositions forMapsubjects.classMultimapSubjectPropositions forMultimapsubjects.private static classMultimapSubject.IterableEntriesclassMultisetSubjectPropositions forMultisetsubjects.classObjectArraySubject<T>A Subject forObject[]and more genericallyT[].classOptionalDoubleSubjectPropositions for Java 8OptionalDoublesubjects.classOptionalIntSubjectPropositions for Java 8OptionalIntsubjects.classOptionalLongSubjectPropositions for Java 8OptionalLongsubjects.classOptionalSubjectPropositions for Java 8Optionalsubjects.classPathSubjectAssertions forPathinstances.classPrimitiveBooleanArraySubjectA Subject forboolean[].classPrimitiveByteArraySubjectA Subject forbyte[].classPrimitiveCharArraySubjectA Subject forchar[].classPrimitiveDoubleArraySubjectA Subject fordouble[].private classPrimitiveDoubleArraySubject.IterableSubjectWithInheritedToStringclassPrimitiveFloatArraySubjectA Subject forfloat[].private classPrimitiveFloatArraySubject.IterableSubjectWithInheritedToStringclassPrimitiveIntArraySubjectA Subject forint[].classPrimitiveLongArraySubjectA Subject forlong[].classPrimitiveShortArraySubjectA Subject forshort[].classStreamSubjectPropositions forStreamsubjects.classStringSubjectPropositions for string subjects.classTableSubjectPropositions forTablesubjects.classThrowableSubjectPropositions forThrowablesubjects.classTruthFailureSubjectSubject forAssertionErrorobjects thrown by Truth.Fields in com.google.common.truth declared as Subject Modifier and Type Field Description (package private) SubjectFailureMetadata.Step. subjectMethods in com.google.common.truth with type parameters of type Subject Modifier and Type Method Description <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>
java.lang.AssertionErrorExpectFailure. expectFailureAbout(Subject.Factory<S,A> factory, ExpectFailure.SimpleSubjectBuilderCallback<S,A> assertionCallback)Static alternative that directly returns the triggered failure.Methods in com.google.common.truth that return Subject Modifier and Type Method Description static SubjectTruth. assertThat(java.lang.Object actual)SubjectStandardSubjectBuilder. that(java.lang.Object actual)Methods in com.google.common.truth with parameters of type Subject Modifier and Type Method Description (package private) static FailureMetadata.StepFailureMetadata.Step. subjectCreation(Subject subject)(package private) FailureMetadataFailureMetadata. updateForSubject(Subject subject)Returns a new instance that includes the given subject in its chain of values.Method parameters in com.google.common.truth with type arguments of type Subject Modifier and Type Method Description private static java.lang.StringSubject. typeDescriptionOrGuess(java.lang.Class<? extends Subject> clazz, java.lang.String typeDescriptionOverride)Constructors in com.google.common.truth with parameters of type Subject Constructor Description Step(Subject subject, com.google.common.base.Function<java.lang.String,java.lang.String> descriptionUpdate, FailureMetadata.OldAndNewValuesAreSimilar valuesAreSimilar)
-