com.atlassian.jira.rest.client
Class IterableMatcher<T>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.junit.internal.matchers.TypeSafeMatcher<java.lang.Iterable<T>>
com.atlassian.jira.rest.client.IterableMatcher<T>
- All Implemented Interfaces:
- org.hamcrest.Matcher<java.lang.Iterable<T>>, org.hamcrest.SelfDescribing
public class IterableMatcher<T>
- extends org.junit.internal.matchers.TypeSafeMatcher<java.lang.Iterable<T>>
| 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 |
IterableMatcher
public IterableMatcher(java.lang.Iterable<T> expected)
hasOnlyElements
public static <T> IterableMatcher<T> hasOnlyElements(T... elements)
hasOnlyElements
public static <T> IterableMatcher<T> hasOnlyElements(java.lang.Iterable<T> elements)
isEmpty
public static <T> IterableMatcher<T> isEmpty()
contains
public static <T> org.junit.internal.matchers.TypeSafeMatcher<java.lang.Iterable<T>> contains(T element)
matchesSafely
public boolean matchesSafely(java.lang.Iterable<T> given)
- Specified by:
matchesSafely in class org.junit.internal.matchers.TypeSafeMatcher<java.lang.Iterable<T>>
describeTo
public void describeTo(org.hamcrest.Description description)
Copyright © 2012 Atlassian Pty Ltd. All Rights Reserved.