public final class SetMultimapSubject extends MultimapSubject
Multimap subjects for SetMultimap subjects.MultimapSubject.UsingCorrespondence<A,E>| Modifier and Type | Method and Description |
|---|---|
void |
isEqualTo(ListMultimap<?,?> other)
Deprecated.
A ListMultimap can never compare equal with a SetMultimap if either Multimap is
non-empty, because
List and Set can never compare
equal. Prefer MultimapSubject.containsExactlyEntriesIn(com.google.common.collect.Multimap) instead.
Consult Multimap.equals(java.lang.Object) for more information. |
SetMultimapSubject |
named(String format,
Object... args)
Adds a prefix to the subject, when it is displayed in error messages.
|
comparingValuesUsing, containsAtLeast, containsAtLeastEntriesIn, containsEntry, containsExactly, containsExactly, containsExactlyEntriesIn, containsKey, doesNotContainEntry, doesNotContainKey, hasSize, isEmpty, isEqualTo, isNotEmpty, valuesForKeyactual, actualAsString, actualCustomStringRepresentation, check, check, equals, fail, fail, fail, failWithActual, failWithActual, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutActual, failWithoutSubject, getSubject, hashCode, ignoreCheck, internalCustomName, isAnyOf, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNotSameInstanceAs, isNull, isSameAs, isSameInstanceAs, toStringpublic SetMultimapSubject 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 using Strings.lenientFormat.
Note this only supports the %s specifier.
named in class Subject<MultimapSubject,Multimap<?,?>>format - a template with %s placeholdersargs - the object parameters which will be applied to the message template.@Deprecated public void isEqualTo(@NullableDecl ListMultimap<?,?> other)
List and Set can never compare
equal. Prefer MultimapSubject.containsExactlyEntriesIn(com.google.common.collect.Multimap) instead.
Consult Multimap.equals(java.lang.Object) for more information.Copyright © 2019. All rights reserved.