private java.lang.Object |
IterableSubject.UsingCorrespondence.Pairer.actualKey(A actual,
Correspondence.ExceptionStore exceptions) |
|
private java.lang.String |
IterableSubject.UsingCorrespondence.describeAnyMatchesByKey(IterableSubject.UsingCorrespondence.Pairing pairing,
Correspondence.ExceptionStore exceptions) |
|
private java.lang.String |
IterableSubject.UsingCorrespondence.describeMissing(java.util.List<? extends E> missing,
java.util.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 java.lang.String |
IterableSubject.UsingCorrespondence.describeMissingOrExtra(java.util.List<? extends E> missing,
java.util.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 java.lang.String |
IterableSubject.UsingCorrespondence.describeMissingOrExtraWithPairing(IterableSubject.UsingCorrespondence.Pairing pairing,
Correspondence.ExceptionStore exceptions) |
|
private java.lang.String |
IterableSubject.UsingCorrespondence.describeMissingWithPairing(IterableSubject.UsingCorrespondence.Pairing pairing,
Correspondence.ExceptionStore exceptions) |
|
private java.lang.Object |
IterableSubject.UsingCorrespondence.Pairer.expectedKey(E expected,
Correspondence.ExceptionStore exceptions) |
|
private boolean |
IterableSubject.UsingCorrespondence.failIfCandidateMappingHasMissing(java.util.List<? extends A> actual,
java.util.List<? extends E> expected,
com.google.common.collect.ImmutableSetMultimap<java.lang.Integer,java.lang.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 boolean |
IterableSubject.UsingCorrespondence.failIfCandidateMappingHasMissingOrExtra(java.util.List<? extends A> actual,
java.util.List<? extends E> expected,
com.google.common.collect.ImmutableSetMultimap<java.lang.Integer,java.lang.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 boolean |
IterableSubject.UsingCorrespondence.failIfOneToOneMappingHasMissing(java.util.List<? extends A> actual,
java.util.List<? extends E> expected,
com.google.common.collect.BiMap<java.lang.Integer,java.lang.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 boolean |
IterableSubject.UsingCorrespondence.failIfOneToOneMappingHasMissingOrExtra(java.util.List<? extends A> actual,
java.util.List<? extends E> expected,
com.google.common.collect.BiMap<java.lang.Integer,java.lang.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.
|
private com.google.common.collect.ImmutableSetMultimap<java.lang.Integer,java.lang.Integer> |
IterableSubject.UsingCorrespondence.findCandidateMapping(java.util.List<? extends A> actual,
java.util.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 boolean |
IterableSubject.UsingCorrespondence.findCorresponding(java.util.Iterator<? extends A> actual,
E expectedElement,
Correspondence.ExceptionStore exceptions) |
Advances the actual iterator looking for an element which corresponds to the expected
element.
|
private Facts |
IterableSubject.UsingCorrespondence.formatExtras(java.lang.String label,
E missing,
java.util.List<? extends A> extras,
Correspondence.ExceptionStore exceptions) |
|
private java.util.List<java.lang.Object> |
IterableSubject.UsingCorrespondence.formatExtrasInline(E missing,
java.util.List<? extends A> extras,
Correspondence.ExceptionStore exceptions) |
|
(package private) IterableSubject.UsingCorrespondence.Pairing |
IterableSubject.UsingCorrespondence.Pairer.pair(java.util.List<? extends E> expectedValues,
java.util.List<? extends A> actualValues,
Correspondence.ExceptionStore exceptions) |
|
(package private) java.util.List<A> |
IterableSubject.UsingCorrespondence.Pairer.pairOne(E expectedValue,
java.lang.Iterable<? extends A> actualValues,
Correspondence.ExceptionStore exceptions) |
|
(package private) boolean |
Correspondence.safeCompare(A actual,
E expected,
Correspondence.ExceptionStore exceptions) |
|
(package private) java.lang.String |
Correspondence.safeFormatDiff(A actual,
E expected,
Correspondence.ExceptionStore exceptions) |
|
private <V extends E> com.google.common.base.Function<MapSubject.ValueDifference<A,V>,java.lang.String> |
MapSubject.UsingCorrespondence.valueDiffFormat(Correspondence.ExceptionStore exceptions) |
Returns a formatting function for value differences when compared using the current
correspondence.
|