com.atlassian.jira.matchers
Class IterableMatchers
java.lang.Object
com.atlassian.jira.matchers.IterableMatchers
public final class IterableMatchers
- extends Object
Some moar iterable matchers. Actually useful as opposed to the ones in Hamcrest with generics overengineering
syndrome.
- Since:
- 5.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
emptyIterable
public static <E> org.hamcrest.Matcher<Iterable<E>> emptyIterable(Class<E> elementType)
iterableWithSize
public static <E> org.hamcrest.Matcher<Iterable<E>> iterableWithSize(int expected,
Class<E> elementType)
hasItems
public static <E> org.hamcrest.Matcher<Iterable<E>> hasItems(Class<E> itemType,
E... items)
hasItems
public static <E> org.hamcrest.Matcher<Iterable<E>> hasItems(Class<E> itemType,
org.hamcrest.Matcher<E>... items)
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)
Copyright © 2002-2013 Atlassian. All Rights Reserved.