Uses of Class
com.google.common.truth.Correspondence.ExceptionStore
-
Uses of Correspondence.ExceptionStore in com.google.common.truth
Methods in com.google.common.truth that return Correspondence.ExceptionStoreModifier and TypeMethodDescription(package private) static Correspondence.ExceptionStoreCorrespondence.ExceptionStore.forIterable()(package private) static Correspondence.ExceptionStoreCorrespondence.ExceptionStore.forMapValues()Methods in com.google.common.truth with parameters of type Correspondence.ExceptionStoreModifier and TypeMethodDescriptionprivate ObjectIterableSubject.UsingCorrespondence.Pairer.actualKey(A actual, Correspondence.ExceptionStore exceptions) private StringIterableSubject.UsingCorrespondence.describeAnyMatchesByKey(IterableSubject.UsingCorrespondence<A, E>.Pairing pairing, Correspondence.ExceptionStore exceptions) private StringIterableSubject.UsingCorrespondence.describeMissing(List<? extends E> missing, List<? extends A> extra, Correspondence.ExceptionStore exceptions) Given a list of missing elements, which must be non-empty, and a list of extra elements, returns a verb phrase (suitable for appearing after the subject of the verb) describing the missing elements, diffing against the extra ones where appropriate.private StringIterableSubject.UsingCorrespondence.describeMissingOrExtra(List<? extends E> missing, List<? extends A> extra, Correspondence.ExceptionStore exceptions) Given a list of missing elements and a list of extra elements, at least one of which must be non-empty, returns a verb phrase (suitable for appearing after the subject of the verb) describing them.private StringIterableSubject.UsingCorrespondence.describeMissingOrExtraWithPairing(IterableSubject.UsingCorrespondence<A, E>.Pairing pairing, Correspondence.ExceptionStore exceptions) private StringIterableSubject.UsingCorrespondence.describeMissingWithPairing(IterableSubject.UsingCorrespondence<A, E>.Pairing pairing, Correspondence.ExceptionStore exceptions) private ObjectIterableSubject.UsingCorrespondence.Pairer.expectedKey(E expected, Correspondence.ExceptionStore exceptions) private booleanIterableSubject.UsingCorrespondence.failIfCandidateMappingHasMissing(List<? extends A> actual, List<? extends E> expected, com.google.common.collect.ImmutableSetMultimap<Integer, Integer> mapping, Correspondence.ExceptionStore exceptions) Given a list of actual elements, a list of expected elements, and a many:many mapping between actual and expected elements specified as a multimap of indexes into an actual list to indexes into the expected list, checks that every expected element maps to at least one actual element, and fails if this is not the case.private booleanIterableSubject.UsingCorrespondence.failIfCandidateMappingHasMissingOrExtra(List<? extends A> actual, List<? extends E> expected, com.google.common.collect.ImmutableSetMultimap<Integer, Integer> mapping, Correspondence.ExceptionStore exceptions) Given a list of actual elements, a list of expected elements, and a many:many mapping between actual and expected elements specified as a multimap of indexes into the actual list to indexes into the expected list, checks that every actual element maps to at least one expected element and vice versa, and fails if this is not the case.private booleanIterableSubject.UsingCorrespondence.failIfOneToOneMappingHasMissing(List<? extends A> actual, List<? extends E> expected, com.google.common.collect.BiMap<Integer, Integer> mapping, Correspondence.ExceptionStore exceptions) Given a list of expected elements, and a 1:1 mapping between actual and expected elements specified as a bimap of indexes into an actual list to indexes into the expected list, checks that every expected element maps to an actual element.private booleanIterableSubject.UsingCorrespondence.failIfOneToOneMappingHasMissingOrExtra(List<? extends A> actual, List<? extends E> expected, com.google.common.collect.BiMap<Integer, Integer> mapping, Correspondence.ExceptionStore exceptions) Given a list of actual elements, a list of expected elements, and a 1:1 mapping between actual and expected elements specified as a bimap of indexes into the actual list to indexes into the expected list, checks that every actual element maps to an expected element and vice versa, and fails if this is not the case.IterableSubject.UsingCorrespondence.findCandidateMapping(List<? extends A> actual, List<? extends E> expected, Correspondence.ExceptionStore exceptions) Given a list of actual elements and a list of expected elements, finds a many:many mapping between actual and expected elements where a pair of elements maps if it satisfies the correspondence.private booleanIterableSubject.UsingCorrespondence.findCorresponding(Iterator<? extends A> actual, E expectedElement, Correspondence.ExceptionStore exceptions) Advances the actual iterator looking for an element which corresponds to the expected element.private FactsIterableSubject.UsingCorrespondence.formatExtras(String label, E missing, List<? extends A> extras, Correspondence.ExceptionStore exceptions) IterableSubject.UsingCorrespondence.formatExtrasInline(E missing, List<? extends A> extras, Correspondence.ExceptionStore exceptions) (package private) IterableSubject.UsingCorrespondence<A,E>.Pairing IterableSubject.UsingCorrespondence.Pairer.pair(List<? extends E> expectedValues, List<? extends A> actualValues, Correspondence.ExceptionStore exceptions) Returns aIterableSubject.UsingCorrespondence<A,of the given expected and actual values, orE>.Pairing nullif the expected values are not uniquely keyed.IterableSubject.UsingCorrespondence.Pairer.pairOne(E expectedValue, Iterable<? extends A> actualValues, Correspondence.ExceptionStore exceptions) (package private) final booleanCorrespondence.safeCompare(A actual, E expected, Correspondence.ExceptionStore exceptions) InvokesCorrespondence.compare(A, E), catching any exceptions.(package private) final StringCorrespondence.safeFormatDiff(A actual, E expected, Correspondence.ExceptionStore exceptions) InvokesCorrespondence.formatDiff(A, E), catching any exceptions.private final <V extends E>
com.google.common.base.Function<MapSubject.ValueDifference<A, V>, String> MapSubject.UsingCorrespondence.valueDiffFormat(Correspondence.ExceptionStore exceptions) Returns a formatting function for value differences when compared using the current correspondence.