public final class ListMultimapSubject extends MultimapSubject
Multimap subjects for ListMultimap subjects.MultimapSubject.UsingCorrespondence<A,E>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.containsExactlyEntriesIn(com.google.common.collect.Multimap) instead.
Consult Multimap.equals(java.lang.Object) for more information. |
ListMultimapSubject |
named(String format,
Object... args)
Adds a prefix to the subject, when it is displayed in error messages.
|
comparingValuesUsing, containsEntry, containsExactly, containsExactly, containsExactly, containsExactlyEntriesIn, containsKey, doesNotContainEntry, doesNotContainKey, hasSize, isEmpty, isEqualTo, isNotEmpty, valuesForKeyactual, actualAsString, actualCustomStringRepresentation, check, equals, fail, fail, fail, failComparing, failComparing, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutSubject, failWithRawMessage, failWithRawMessageAndCause, getDisplaySubject, getSubject, hashCode, ignoreCheck, internalCustomName, isAnyOf, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAspublic ListMultimapSubject named(String format, Object... args)
SubjecttoString() representation, e.g. boolean.
Writing assertThat(foo).named("foo").isTrue(); then results in a more reasonable error
message.
named() takes a format template and argument objects which will be substituted into
the template, similar to String.format(String, Object...), the chief difference being
that extra parameters (for which there are no template variables) will be appended to the
resulting string in brackets. Additionally, this only supports the %s template variable
type.
named in class Subject<MultimapSubject,com.google.common.collect.Multimap<?,?>>@Deprecated public void isEqualTo(@Nullable 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.containsExactlyEntriesIn(com.google.common.collect.Multimap) instead.
Consult Multimap.equals(java.lang.Object) for more information.Copyright © 2017. All rights reserved.