public class CollectionMatchersKt
| Modifier and Type | Method and Description |
|---|---|
static <T> Matcher<java.util.Collection> |
beEmpty() |
static <T extends Comparable<? super T>> |
beMonotonicallyDecreasing() |
static <T> Matcher<java.util.List> |
beMonotonicallyDecreasingWith(java.util.Comparator<? super T> comparator) |
static <T extends Comparable<? super T>> |
beMonotonicallyIncreasing() |
static <T> Matcher<java.util.List> |
beMonotonicallyIncreasingWith(java.util.Comparator<? super T> comparator) |
static <T extends Comparable<? super T>> |
beSorted() |
static <T extends Comparable<? super T>> |
beStrictlyDecreasing() |
static <T> Matcher<java.util.List> |
beStrictlyDecreasingWith(java.util.Comparator<? super T> comparator) |
static <T extends Comparable<? super T>> |
beStrictlyIncreasing() |
static <T> Matcher<java.util.List> |
beStrictlyIncreasingWith(java.util.Comparator<? super T> comparator) |
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 extends Comparable<? super T>> |
monotonicallyDecreasing() |
static <T> Matcher<java.util.List> |
monotonicallyDecreasingWith(java.util.Comparator<? super T> comparator) |
static <T extends Comparable<? super T>> |
monotonicallyIncreasing() |
static <T> Matcher<java.util.List> |
monotonicallyIncreasingWith(java.util.Comparator<? super T> comparator) |
static <T> Matcher<java.util.Collection> |
singleElement(T t) |
static <T extends Comparable<? super T>> |
sorted() |
static <T extends Comparable<? super T>> |
strictlyDecreasing() |
static <T> Matcher<java.util.List> |
strictlyDecreasingWith(java.util.Comparator<? super T> comparator) |
static <T extends Comparable<? super T>> |
strictlyIncreasing() |
static <T> Matcher<java.util.List> |
strictlyIncreasingWith(java.util.Comparator<? super T> comparator) |
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()
public static <T extends Comparable<? super T>> Matcher<java.util.List> beMonotonicallyIncreasing()
public static <T extends Comparable<? super T>> Matcher<java.util.List> monotonicallyIncreasing()
public static <T> Matcher<java.util.List> beMonotonicallyIncreasingWith(java.util.Comparator<? super T> comparator)
public static <T> Matcher<java.util.List> monotonicallyIncreasingWith(java.util.Comparator<? super T> comparator)
public static <T extends Comparable<? super T>> Matcher<java.util.List> beMonotonicallyDecreasing()
public static <T extends Comparable<? super T>> Matcher<java.util.List> monotonicallyDecreasing()
public static <T> Matcher<java.util.List> beMonotonicallyDecreasingWith(java.util.Comparator<? super T> comparator)
public static <T> Matcher<java.util.List> monotonicallyDecreasingWith(java.util.Comparator<? super T> comparator)
public static <T extends Comparable<? super T>> Matcher<java.util.List> beStrictlyIncreasing()
public static <T extends Comparable<? super T>> Matcher<java.util.List> strictlyIncreasing()
public static <T> Matcher<java.util.List> beStrictlyIncreasingWith(java.util.Comparator<? super T> comparator)
public static <T> Matcher<java.util.List> strictlyIncreasingWith(java.util.Comparator<? super T> comparator)
public static <T extends Comparable<? super T>> Matcher<java.util.List> beStrictlyDecreasing()
public static <T extends Comparable<? super T>> Matcher<java.util.List> strictlyDecreasing()
public static <T> Matcher<java.util.List> beStrictlyDecreasingWith(java.util.Comparator<? super T> comparator)
public static <T> Matcher<java.util.List> strictlyDecreasingWith(java.util.Comparator<? super T> comparator)