public class ListMultimapSubject<S extends ListMultimapSubject<S,K,V,M>,K,V,M extends com.google.common.collect.ListMultimap<K,V>> extends MultimapSubject<S,K,V,M>
Multimap
subjects for
ListMultimap
subjects.Subject.HasField
failureStrategy
Modifier and Type | Method and Description |
---|---|
void |
isEqualTo(com.google.common.collect.SetMultimap<?,?> other)
Deprecated.
#isEqualTo A SetMultimap can never compare equal with a ListMultimap if
either Multimap is non-empty, because Set and List can never
compare equal. Prefer
MultimapSubject.containsExactly(com.google.common.collect.Multimap) instead.
Consult Multimap.equals(java.lang.Object) for more information. |
ListSubject<? extends ListSubject<?,V,? extends List<V>>,V,? extends List<V>> |
valuesForKey(K key)
Returns a context-aware Subject for making assertions about the values for the given key
within the Multimap.
|
containsEntry, containsExactly, containsKey, doesNotContainEntry, doesNotContainKey, hasSize, isEmpty, isEqualTo, isNotEmpty, valuesForKeyDisplaySubject
check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hasField, hashCode, internalCustomName, is, isA, isInstanceOf, isNotA, isNotEqualTo, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, labeled, named
@CheckReturnValue public ListSubject<? extends ListSubject<?,V,? extends List<V>>,V,? extends List<V>> valuesForKey(@Nullable K key)
This method performs no checks on its own and cannot cause test failures. Subsequent assertions must be chained onto this method call to test properties of the Multimap.
This method returns a ListSubject instead of an IterableSubject to allow for more type-specific assertions.
valuesForKey
in class MultimapSubject<S extends ListMultimapSubject<S,K,V,M>,K,V,M extends com.google.common.collect.ListMultimap<K,V>>
@Deprecated public void isEqualTo(com.google.common.collect.SetMultimap<?,?> other)
#isEqualTo
A SetMultimap can never compare equal with a ListMultimap if
either Multimap is non-empty, because Set
and List
can never
compare equal. Prefer
MultimapSubject.containsExactly(com.google.common.collect.Multimap)
instead.
Consult Multimap.equals(java.lang.Object)
for more information.Copyright © 2014. All rights reserved.