Class IterableMatchers
java.lang.Object
com.atlassian.jira.functest.framework.matchers.IterableMatchers
Some moar iterable matchers.
- Since:
- 5.1
- 
Method SummaryModifier 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
- 
isSingletonpublic static <E> org.hamcrest.Matcher<Iterable<E>> isSingleton(org.hamcrest.Matcher<E> singleElementMatcher) 
- 
hasItems
- 
hasItemsThat
- 
hasItemThatpublic static <E> org.hamcrest.Matcher<Iterable<E>> hasItemThat(org.hamcrest.Matcher<E> itemMatcher) 
- 
hasNoItemThatpublic static <E> org.hamcrest.Matcher<Iterable<E>> hasNoItemThat(org.hamcrest.Matcher<E> itemMatcher) 
- 
containsAt
- 
containsFirst
- 
containsFirstpublic static <E> org.hamcrest.Matcher<Iterable<E>> containsFirst(org.hamcrest.Matcher<E> itemMatcher) 
- 
containsLast
- 
containsLastpublic static <E> org.hamcrest.Matcher<Iterable<E>> containsLast(org.hamcrest.Matcher<E> itemMatcher) 
- 
containsAtpublic static <E> org.hamcrest.Matcher<Iterable<E>> containsAt(org.hamcrest.Matcher<E> itemMatcher, int at) 
 
-