public final class MultisetSubject extends IterableSubject
Multiset
subjects.failureStrategy
Modifier and Type | Method and Description |
---|---|
void |
hasCount(Object element,
int expectedCount)
Fails if the element does not have the given count.
|
MultisetSubject |
named(String name)
Renames the subject so that this name appears in the error messages in place of string
representations of the subject.
|
contains, containsAllIn, containsAllOf, containsAnyIn, containsAnyOf, containsExactly, containsExactlyElementsIn, containsNoDuplicates, containsNoneIn, containsNoneOf, doesNotContain, failWithBadResultsAndSuffix, hasSize, isEmpty, isNotEmpty, isOrdered, isOrdered, isPartiallyOrdered, isPartiallyOrdered, isStrictlyOrdered, isStrictlyOrdered
check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hashCode, internalCustomName, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs
public MultisetSubject named(String name)
named
in class Subject<IterableSubject,Iterable<?>>
Copyright © 2016. All rights reserved.