public class CollectionMatchers extends Object
| Constructor and Description |
|---|
CollectionMatchers() |
| Modifier and Type | Method and Description |
|---|---|
static <E> org.hamcrest.Matcher<Collection<E>> |
allMatch(Predicate<E> predicate) |
static <E> org.hamcrest.Matcher<Collection<E>> |
allMatch(Predicate<E> predicate,
String predicateDescription) |
static <E> org.hamcrest.Matcher<Collection<E>> |
allSatisfy(Consumer<E> consumer) |
static <E> org.hamcrest.Matcher<Collection<E>> |
allSatisfy(Consumer<E> consumer,
String consumerDescription) |
static <E> org.hamcrest.Matcher<Collection<E>> |
anyMatch(Predicate<E> predicate) |
static <E> org.hamcrest.Matcher<Collection<E>> |
anyMatch(Predicate<E> predicate,
String predicateDescription) |
static <E> org.hamcrest.Matcher<Collection<E>> |
containsAll(Collection<E> expectedListEntries) |
static <E> org.hamcrest.Matcher<Collection<E>> |
satisfies(Consumer<Collection<E>> consumer) |
static <E> org.hamcrest.Matcher<Collection<E>> |
satisfies(Consumer<Collection<E>> consumer,
String consumerDescription) |
public static <E> org.hamcrest.Matcher<Collection<E>> containsAll(Collection<E> expectedListEntries)
public static <E> org.hamcrest.Matcher<Collection<E>> allMatch(Predicate<E> predicate)
public static <E> org.hamcrest.Matcher<Collection<E>> allMatch(Predicate<E> predicate, String predicateDescription)
public static <E> org.hamcrest.Matcher<Collection<E>> anyMatch(Predicate<E> predicate)
public static <E> org.hamcrest.Matcher<Collection<E>> anyMatch(Predicate<E> predicate, String predicateDescription)
public static <E> org.hamcrest.Matcher<Collection<E>> allSatisfy(Consumer<E> consumer)
public static <E> org.hamcrest.Matcher<Collection<E>> allSatisfy(Consumer<E> consumer, String consumerDescription)
public static <E> org.hamcrest.Matcher<Collection<E>> satisfies(Consumer<Collection<E>> consumer)
public static <E> org.hamcrest.Matcher<Collection<E>> satisfies(Consumer<Collection<E>> consumer, String consumerDescription)
Copyright © 2022. All rights reserved.