Uses of Class
com.google.common.truth.IterableSubject.UsingCorrespondence
Packages that use IterableSubject.UsingCorrespondence
-
Uses of IterableSubject.UsingCorrespondence in com.google.common.truth
Subclasses of IterableSubject.UsingCorrespondence in com.google.common.truthModifier and TypeClassDescriptionstatic final class
A partially specified check for doing assertions on the array similar to the assertions supported forIterable
values, in which the elements of the array under test are compared to expected elements using either exact or tolerant double equality: seePrimitiveDoubleArraySubject.usingExactEquality()
andPrimitiveDoubleArraySubject.usingTolerance(double)
.static final class
A partially specified check for doing assertions on the array similar to the assertions supported forIterable
values, in which the elements of the array under test are compared to expected elements using either exact or tolerant float equality: seePrimitiveFloatArraySubject.usingExactEquality()
andPrimitiveFloatArraySubject.usingTolerance(double)
.Methods in com.google.common.truth that return IterableSubject.UsingCorrespondenceModifier and TypeMethodDescription<A extends @Nullable Object, E extends @Nullable Object>
IterableSubject.UsingCorrespondence<A, E> IterableSubject.comparingElementsUsing
(Correspondence<? super A, ? super E> correspondence) Starts a method chain for a check in which the actual elements (i.e. the elements of theIterable
under test) are compared to expected elements using the givenCorrespondence
.IterableSubject.UsingCorrespondence.displayingDiffsPairedBy
(Function<? super A, ?> actualKeyFunction, Function<? super E, ?> expectedKeyFunction) Specifies a way to pair up unexpected and missing elements in the message when an assertion fails.IterableSubject.UsingCorrespondence.displayingDiffsPairedBy
(Function<? super E, ?> keyFunction) Specifies a way to pair up unexpected and missing elements in the message when an assertion fails.<T extends @Nullable Object>
IterableSubject.UsingCorrespondence<T, T> IterableSubject.formattingDiffsUsing
(Correspondence.DiffFormatter<? super T, ? super T> formatter) Starts a method chain for a check in which failure messages may use the givenCorrespondence.DiffFormatter
to describe the difference between an actual element (i.e. an element of theIterable
under test) and the element it is expected to be equal to, but isn't.