com.atlassian.jira.rest.client
Class IterableMatcher<T>

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.junit.internal.matchers.TypeSafeMatcher<Iterable<T>>
          extended by com.atlassian.jira.rest.client.IterableMatcher<T>
All Implemented Interfaces:
org.hamcrest.Matcher<Iterable<T>>, org.hamcrest.SelfDescribing

public class IterableMatcher<T>
extends org.junit.internal.matchers.TypeSafeMatcher<Iterable<T>>


Constructor Summary
IterableMatcher(Iterable<T> expected)
           
 
Method Summary
static
<T> org.junit.internal.matchers.TypeSafeMatcher<Iterable<T>>
contains(T element)
           
 void describeTo(org.hamcrest.Description description)
           
static
<T> IterableMatcher<T>
hasOnlyElements(Iterable<T> elements)
           
static
<T> IterableMatcher<T>
hasOnlyElements(T... elements)
           
static
<T> IterableMatcher<T>
isEmpty()
           
 boolean matchesSafely(Iterable<T> given)
           
 
Methods inherited from class org.junit.internal.matchers.TypeSafeMatcher
matches
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IterableMatcher

public IterableMatcher(Iterable<T> expected)
Method Detail

hasOnlyElements

public static <T> IterableMatcher<T> hasOnlyElements(T... elements)

hasOnlyElements

public static <T> IterableMatcher<T> hasOnlyElements(Iterable<T> elements)

isEmpty

public static <T> IterableMatcher<T> isEmpty()

contains

public static <T> org.junit.internal.matchers.TypeSafeMatcher<Iterable<T>> contains(T element)

matchesSafely

public boolean matchesSafely(Iterable<T> given)
Specified by:
matchesSafely in class org.junit.internal.matchers.TypeSafeMatcher<Iterable<T>>

describeTo

public void describeTo(org.hamcrest.Description description)


Copyright © 2012 Atlassian Pty Ltd. All Rights Reserved.