com.atlassian.jira.matchers
Class IterableMatchers

java.lang.Object
  extended by com.atlassian.jira.matchers.IterableMatchers

public final class IterableMatchers
extends Object

Some moar iterable matchers.

Since:
5.1

Method Summary
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>>
iterableWithSize(int expected, Class<E> elementType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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)


Copyright © 2002-2012 Atlassian. All Rights Reserved.