Uses of Interface
com.google.common.truth.Correspondence.DiffFormatter
-
Packages that use Correspondence.DiffFormatter Package Description com.google.common.truth Truth is a library for performing assertions in tests: -
-
Uses of Correspondence.DiffFormatter in com.google.common.truth
Methods in com.google.common.truth with parameters of type Correspondence.DiffFormatter Modifier and Type Method Description Correspondence<A,E>
Correspondence. formattingDiffsUsing(Correspondence.DiffFormatter<? super A,? super E> formatter)
Returns a new correspondence which is like this one, except that the given formatter may be used to format the difference between a pair of elements that do not correspond.<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.<V extends @Nullable Object>
MapSubject.UsingCorrespondence<V,V>MapSubject. formattingDiffsUsing(Correspondence.DiffFormatter<? super V,? super V> formatter)
Starts a method chain for a check in which failure messages may use the givenCorrespondence.DiffFormatter
to describe the difference between an actual value (i.e. a value in theMap
under test) and the value it is expected to be equal to, but isn't.
-