Uses of Class
com.google.common.truth.Correspondence
-
-
Uses of Correspondence in com.google.common.truth
Subclasses of Correspondence in com.google.common.truth Modifier and Type Class Description private static class
Correspondence.FormattingDiffs<A,E>
private static class
Correspondence.FromBinaryPredicate<A,E>
private static class
Correspondence.TolerantNumericEquality
private static class
Correspondence.Transforming<A,E>
private static class
MultimapSubject.EntryCorrespondence<K,A,E>
Fields in com.google.common.truth declared as Correspondence Modifier and Type Field Description private Correspondence<? super A,? super E>
IterableSubject.UsingCorrespondence. correspondence
private Correspondence<? super A,? super E>
MapSubject.UsingCorrespondence. correspondence
private Correspondence<? super A,? super E>
MultimapSubject.UsingCorrespondence. correspondence
private Correspondence<A,E>
Correspondence.FormattingDiffs. delegate
private static Correspondence<java.lang.Double,java.lang.Number>
PrimitiveDoubleArraySubject. EXACT_EQUALITY_CORRESPONDENCE
private static Correspondence<java.lang.Float,java.lang.Number>
PrimitiveFloatArraySubject. EXACT_EQUALITY_CORRESPONDENCE
private Correspondence<? super A,? super E>
MultimapSubject.EntryCorrespondence. valueCorrespondence
Methods in com.google.common.truth that return Correspondence 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.static <A,E>
Correspondence<A,E>Correspondence. from(Correspondence.BinaryPredicate<A,E> predicate, java.lang.String description)
Constructs aCorrespondence
that compares actual and expected elements using the given binary predicate.static Correspondence<java.lang.Number,java.lang.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, java.lang.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, java.lang.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 Correspondence Modifier and Type Method Description <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.<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 Correspondence Constructor Description DoubleArrayAsIterable(Correspondence<? super java.lang.Double,java.lang.Number> correspondence, IterableSubject subject)
EntryCorrespondence(Correspondence<? super A,? super E> valueCorrespondence)
FloatArrayAsIterable(Correspondence<? super java.lang.Float,java.lang.Number> correspondence, IterableSubject subject)
FormattingDiffs(Correspondence<A,E> delegate, Correspondence.DiffFormatter<? super A,? super E> formatter)
UsingCorrespondence(IterableSubject subject, Correspondence<? super A,? super E> correspondence)
UsingCorrespondence(IterableSubject subject, Correspondence<? super A,? super E> correspondence, IterableSubject.UsingCorrespondence.Pairer pairer)
UsingCorrespondence(Correspondence<? super A,? super E> correspondence)
UsingCorrespondence(Correspondence<? super A,? super E> correspondence)
-