Uses of Class
com.google.common.truth.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
subjects, 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
subjects, 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,
E> 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.IterableSubject.UsingCorrespondence.displayingDiffsPairedBy
(com.google.common.base.Function<? super A, ?> actualKeyFunction, com.google.common.base.Function<? super E, ?> expectedKeyFunction) Specifies a way to pair up unexpected and missing elements in the message when an assertion fails.IterableSubject.UsingCorrespondence.displayingDiffsPairedBy
(com.google.common.base.Function<? super E, ?> keyFunction) Specifies a way to pair up unexpected and missing elements in the message when an assertion fails.