Package com.google.common.truth
Class PrimitiveFloatArraySubject.IterableSubjectWithInheritedToString
java.lang.Object
com.google.common.truth.Subject
com.google.common.truth.IterableSubject
com.google.common.truth.PrimitiveFloatArraySubject.IterableSubjectWithInheritedToString
- Enclosing class:
PrimitiveFloatArraySubject
private final class PrimitiveFloatArraySubject.IterableSubjectWithInheritedToString
extends IterableSubject
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.truth.IterableSubject
IterableSubject.ElementFactGrouping, IterableSubject.UsingCorrespondence<A,
E> Nested classes/interfaces inherited from class com.google.common.truth.Subject
Subject.EqualityCheck, Subject.Factory<SubjectT extends Subject,
ActualT> -
Constructor Summary
ConstructorsConstructorDescriptionIterableSubjectWithInheritedToString
(FailureMetadata metadata, Iterable<?> actual) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Supplies the direct string representation of the actual value to other methods which may prefix or otherwise position it in an error message.Methods inherited from class com.google.common.truth.IterableSubject
comparingElementsUsing, contains, containsAnyIn, containsAnyIn, containsAnyOf, containsAtLeast, containsAtLeastElementsIn, containsAtLeastElementsIn, containsExactly, containsExactlyElementsIn, containsExactlyElementsIn, containsNoDuplicates, containsNoneIn, containsNoneIn, containsNoneOf, doesNotContain, hasSize, isEmpty, isEqualTo, isInOrder, isInOrder, isInStrictOrder, isInStrictOrder, isNoneOf, isNotEmpty, isNotIn
Methods inherited from class com.google.common.truth.Subject
actual, actualCustomStringRepresentationForPackageMembersToCall, butWas, check, check, checkNoNeedToDisplayBothValues, equals, fail, fail, fail, failEqualityCheckForEqualsWithoutDescription, failWithActual, failWithActual, failWithActual, failWithActual, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutActual, failWithoutActual, failWithoutActual, failWithoutSubject, hashCode, ignoreCheck, isAnyOf, isIn, isInstanceOf, isNotEqualTo, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs, toString, typeDescription
-
Constructor Details
-
IterableSubjectWithInheritedToString
IterableSubjectWithInheritedToString(FailureMetadata metadata, Iterable<?> actual)
-
-
Method Details
-
actualCustomStringRepresentation
Description copied from class:Subject
Supplies the direct string representation of the actual value to other methods which may prefix or otherwise position it in an error message. This should only be overridden to provide an improved string representation of the value under test, as it would appear in any given error message, and should not be used for additional prefixing.Subjects should override this with care.
By default, this returns
String.ValueOf(getActualValue())
.- Overrides:
actualCustomStringRepresentation
in classIterableSubject
-