public class CollectionMatchersKt
| Modifier and Type | Method and Description |
|---|---|
static <T> Matcher<java.util.Collection> |
beEmpty() |
static <T extends Comparable<? super T>> |
beSorted() |
static <T> Matcher<java.util.Collection> |
containAll(T ts) |
static <T> Matcher<java.util.Collection> |
containAll(java.util.Collection<? extends T> ts) |
static <T> Matcher<java.util.Collection> |
containsInOrder(T ts) |
static <T> Matcher<java.util.Collection> |
containsInOrder(java.util.List<? extends T> subsequence)
Assert that a collection contains a given subsequence, possibly with values in between.
|
static <T> Matcher<java.util.Collection> |
haveSize(int size) |
static <T> Matcher<java.util.Collection> |
haveSizeMatcher(int size) |
static <T> Matcher<java.util.Collection> |
singleElement(T t) |
static <T extends Comparable<? super T>> |
sorted() |
public static <T> Matcher<java.util.Collection> haveSizeMatcher(int size)
public static <T> Matcher<java.util.Collection> beEmpty()
public static <T> Matcher<java.util.Collection> containAll(T ts)
public static <T> Matcher<java.util.Collection> containAll(java.util.Collection<? extends T> ts)
public static <T> Matcher<java.util.Collection> containsInOrder(T ts)
public static <T> Matcher<java.util.Collection> containsInOrder(java.util.List<? extends T> subsequence)
Assert that a collection contains a given subsequence, possibly with values in between.
public static <T> Matcher<java.util.Collection> haveSize(int size)
public static <T> Matcher<java.util.Collection> singleElement(T t)
public static <T extends Comparable<? super T>> Matcher<java.util.List> beSorted()
public static <T extends Comparable<? super T>> Matcher<java.util.List> sorted()