Class IterableMatchers
java.lang.Object
com.atlassian.jira.functest.framework.matchers.IterableMatchers
Some moar iterable matchers.
- Since:
- 5.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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>> 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(E expectedElement) static <E> org.hamcrest.Matcher<Iterable<E>> isSingleton(Class<E> type, E singleElement) 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)
-
Method Details
-
emptyIterable
-
iterableWithSize
-
hasSizeOfAtLeast
-
hasSizeOfAtLeast
-
isSingleton
-
isSingleton
-
isSingleton
public static <E> org.hamcrest.Matcher<Iterable<E>> isSingleton(org.hamcrest.Matcher<E> singleElementMatcher) -
hasItems
-
hasItemsThat
-
hasItemThat
public static <E> org.hamcrest.Matcher<Iterable<E>> hasItemThat(org.hamcrest.Matcher<E> itemMatcher) -
hasNoItemThat
public static <E> org.hamcrest.Matcher<Iterable<E>> hasNoItemThat(org.hamcrest.Matcher<E> itemMatcher) -
containsAt
-
containsFirst
-
containsFirst
public static <E> org.hamcrest.Matcher<Iterable<E>> containsFirst(org.hamcrest.Matcher<E> itemMatcher) -
containsLast
-
containsLast
public static <E> org.hamcrest.Matcher<Iterable<E>> containsLast(org.hamcrest.Matcher<E> itemMatcher) -
containsAt
public static <E> org.hamcrest.Matcher<Iterable<E>> containsAt(org.hamcrest.Matcher<E> itemMatcher, int at)
-