Uses of Class
com.google.common.truth.MapSubject.UsingCorrespondence
Packages that use MapSubject.UsingCorrespondence
-
Uses of MapSubject.UsingCorrespondence in com.google.common.truth
Methods in com.google.common.truth that return MapSubject.UsingCorrespondenceModifier and TypeMethodDescriptionfinal <A extends @Nullable Object, E extends @Nullable Object>
MapSubject.UsingCorrespondence<A, E> MapSubject.comparingValuesUsing
(Correspondence<? super A, ? super E> correspondence) Starts a method chain for a check in which the actual values (i.e. the values of theMap
under test) are compared to expected values using the givenCorrespondence
.final <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 map (i.e. a value in theMap
under test) and the value it is expected to be equal to, but isn't.