Uses of Class
com.google.common.truth.Correspondence
-
Uses of Correspondence in com.google.common.truth
Subclasses of Correspondence in com.google.common.truthModifier and TypeClassDescriptionprivate static class
private static final class
private static final class
private static final class
private static final class
Fields in com.google.common.truth declared as CorrespondenceModifier and TypeFieldDescriptionprivate final Correspondence
<? super A, ? super E> IterableSubject.UsingCorrespondence.correspondence
private final Correspondence
<? super A, ? super E> MapSubject.UsingCorrespondence.correspondence
private final Correspondence
<? super A, ? super E> MultimapSubject.UsingCorrespondence.correspondence
private final Correspondence
<A, E> Correspondence.FormattingDiffs.delegate
private static final Correspondence
<Double, Number> PrimitiveDoubleArraySubject.EXACT_EQUALITY_CORRESPONDENCE
private static final Correspondence
<Float, Number> PrimitiveFloatArraySubject.EXACT_EQUALITY_CORRESPONDENCE
private final Correspondence
<? super A, ? super E> MultimapSubject.EntryCorrespondence.valueCorrespondence
Methods in com.google.common.truth that return CorrespondenceModifier and TypeMethodDescriptionCorrespondence.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.static <A,
E> Correspondence <A, E> Correspondence.from
(Correspondence.BinaryPredicate<A, E> predicate, String description) Constructs aCorrespondence
that compares actual and expected elements using the given binary predicate.static Correspondence
<Number, Number> Correspondence.tolerance
(double tolerance) Returns aCorrespondence
betweenNumber
instances that considers instances to correspond (i.e.static <A,
E> Correspondence <A, E> Correspondence.transforming
(com.google.common.base.Function<A, ?> actualTransform, com.google.common.base.Function<E, ?> expectedTransform, String description) Constructs aCorrespondence
that compares elements by transforming the actual and the expected elements using the given functions and testing the transformed values for equality.static <A,
E> Correspondence <A, E> Correspondence.transforming
(com.google.common.base.Function<A, ? extends E> actualTransform, String description) Constructs aCorrespondence
that compares elements by transforming the actual elements using the given function and testing for equality with the expected elements.Methods in com.google.common.truth with parameters of type CorrespondenceModifier 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.final <A,
E> 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.<A,
E> MultimapSubject.UsingCorrespondence <A, E> MultimapSubject.comparingValuesUsing
(Correspondence<? super A, ? super E> correspondence) Starts a method chain for a check in which the actual values (i.e.Constructors in com.google.common.truth with parameters of type CorrespondenceModifierConstructorDescription(package private)
DoubleArrayAsIterable
(Correspondence<? super Double, Number> correspondence, IterableSubject subject) (package private)
EntryCorrespondence
(Correspondence<? super A, ? super E> valueCorrespondence) (package private)
FloatArrayAsIterable
(Correspondence<? super Float, Number> correspondence, IterableSubject subject) (package private)
FormattingDiffs
(Correspondence<A, E> delegate, Correspondence.DiffFormatter<? super A, ? super E> formatter) (package private)
UsingCorrespondence
(IterableSubject subject, Correspondence<? super A, ? super E> correspondence) (package private)
UsingCorrespondence
(IterableSubject subject, Correspondence<? super A, ? super E> correspondence, IterableSubject.UsingCorrespondence<A, E>.Pairer pairer) private
UsingCorrespondence
(Correspondence<? super A, ? super E> correspondence) private
UsingCorrespondence
(Correspondence<? super A, ? super E> correspondence)