com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.matcher
Class IsCollectionOf<T>

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.junit.internal.matchers.TypeSafeMatcher<Collection<T>>
          extended by com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.matcher.IsCollectionOf<T>
All Implemented Interfaces:
org.hamcrest.Matcher<Collection<T>>, org.hamcrest.SelfDescribing

public class IsCollectionOf<T>
extends org.junit.internal.matchers.TypeSafeMatcher<Collection<T>>

Since:
v4.3

Constructor Summary
IsCollectionOf(Collection<T> expected)
           
 
Method Summary
 void describeTo(org.hamcrest.Description description)
           
 boolean matchesSafely(Collection<T> given)
           
static
<T> org.hamcrest.Matcher<Collection<T>>
ofItems(T... items)
           
static org.hamcrest.Matcher<Collection<String>> ofProjectKeys(List<Project> projects)
           
 
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

IsCollectionOf

public IsCollectionOf(Collection<T> expected)
Method Detail

matchesSafely

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

ofProjectKeys

public static org.hamcrest.Matcher<Collection<String>> ofProjectKeys(List<Project> projects)

ofItems

public static <T> org.hamcrest.Matcher<Collection<T>> ofItems(T... items)

describeTo

public void describeTo(org.hamcrest.Description description)


Copyright © 2002-2012 Atlassian. All Rights Reserved.