Uses of Class
com.google.common.truth.IterableSubject.UsingCorrespondence
-
Packages that use IterableSubject.UsingCorrespondence Package Description com.google.common.truth Truth is a library for performing assertions in tests: -
-
Uses of IterableSubject.UsingCorrespondence in com.google.common.truth
Subclasses of IterableSubject.UsingCorrespondence in com.google.common.truth Modifier and Type Class Description static class
PrimitiveDoubleArraySubject.DoubleArrayAsIterable
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 class
PrimitiveFloatArraySubject.FloatArrayAsIterable
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.UsingCorrespondence Modifier and Type Method Description <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<A,E>
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<A,E>
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 elements (i.e. an element of theIterable
under test) and the element it is expected to be equal to, but isn't.
-