public final class IterableMatchers extends Object
Modifier and Type | Method and Description |
---|---|
static <E> org.hamcrest.Matcher<Iterable<E>> |
containsAt(E item,
int at) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
containsAt(org.hamcrest.Matcher<E> itemMatcher,
int at) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
containsFirst(E item) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
containsFirst(org.hamcrest.Matcher<E> itemMatcher) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
containsLast(E item) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
containsLast(org.hamcrest.Matcher<E> itemMatcher) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
emptyIterable(Class<E> elementType) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
hasItems(Class<E> itemType,
E... items) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
hasItemsThat(Class<E> itemType,
org.hamcrest.Matcher<E>... items) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
hasItemThat(org.hamcrest.Matcher<E> itemMatcher) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
hasNoItemThat(org.hamcrest.Matcher<E> itemMatcher) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
hasSizeOfAtLeast(int expectedMinimumSize) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
hasSizeOfAtLeast(int expectedMinimumSize,
Class<E> elementType) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
isSingleton(Class<E> type,
E singleElement) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
isSingleton(E expectedElement) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
isSingleton(org.hamcrest.Matcher<E> singleElementMatcher) |
static <E> org.hamcrest.Matcher<Iterable<E>> |
iterableWithSize(int expected,
Class<E> elementType) |
public static <E> org.hamcrest.Matcher<Iterable<E>> emptyIterable(Class<E> elementType)
public static <E> org.hamcrest.Matcher<Iterable<E>> iterableWithSize(int expected, Class<E> elementType)
public static <E> org.hamcrest.Matcher<Iterable<E>> hasSizeOfAtLeast(int expectedMinimumSize, Class<E> elementType)
public static <E> org.hamcrest.Matcher<Iterable<E>> hasSizeOfAtLeast(int expectedMinimumSize)
public static <E> org.hamcrest.Matcher<Iterable<E>> isSingleton(Class<E> type, E singleElement)
public static <E> org.hamcrest.Matcher<Iterable<E>> isSingleton(E expectedElement)
public static <E> org.hamcrest.Matcher<Iterable<E>> isSingleton(org.hamcrest.Matcher<E> singleElementMatcher)
public static <E> org.hamcrest.Matcher<Iterable<E>> hasItems(Class<E> itemType, E... items)
public static <E> org.hamcrest.Matcher<Iterable<E>> hasItemsThat(Class<E> itemType, org.hamcrest.Matcher<E>... items)
public static <E> org.hamcrest.Matcher<Iterable<E>> hasItemThat(org.hamcrest.Matcher<E> itemMatcher)
public static <E> org.hamcrest.Matcher<Iterable<E>> hasNoItemThat(org.hamcrest.Matcher<E> itemMatcher)
public static <E> org.hamcrest.Matcher<Iterable<E>> containsAt(E item, int at)
public static <E> org.hamcrest.Matcher<Iterable<E>> containsFirst(E item)
public static <E> org.hamcrest.Matcher<Iterable<E>> containsFirst(org.hamcrest.Matcher<E> itemMatcher)
public static <E> org.hamcrest.Matcher<Iterable<E>> containsLast(E item)
public static <E> org.hamcrest.Matcher<Iterable<E>> containsLast(org.hamcrest.Matcher<E> itemMatcher)
public static <E> org.hamcrest.Matcher<Iterable<E>> containsAt(org.hamcrest.Matcher<E> itemMatcher, int at)
Copyright © 2002-2018 Atlassian. All Rights Reserved.