Package org.hamcrest.collection
package org.hamcrest.collection
Matchers of arrays and collections.
-
ClassDescriptionA matcher for arrays that matches when each item in the examined array satisfies the corresponding matcher in the specified list of matchers.Collected helper code for converting matchers between lists and iterables.Matches if an array contains an item satisfying a nested matcher.IsArray<T>Matcher for array whose elements satisfy a sequence of matchers.Deprecated.Deprecated.As of release 2.1, replaced by
ArrayMatching
.Matches if array size satisfies a size matcher.Matches if collection size satisfies a nested matcher.Tests if a collection is empty.Tests if an iterable is empty.IsIn<T>Tests if a collection contains a matching object.Tests if an iterable contains matching elements in any order.Tests if an iterable contains matching elements in order.Tests if an iterable contains matching elements in relative order.Matches if iterable size satisfies a size matcher.IsMapContaining<K,V> Matches if map keys, values or entries match the value matchers.IsMapWithSize<K,V> Matches if map size satisfies a nested matcher.
ArrayMatching
.