com.atlassian.bamboo.matcher.collection
Class IsCollectionEqual<T>

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<java.lang.Iterable<T>>
          extended by com.atlassian.bamboo.matcher.collection.IsCollectionEqual<T>
All Implemented Interfaces:
org.hamcrest.Matcher<java.lang.Iterable<T>>, org.hamcrest.SelfDescribing

public class IsCollectionEqual<T>
extends org.hamcrest.TypeSafeMatcher<java.lang.Iterable<T>>


Constructor Summary
protected IsCollectionEqual(java.lang.Iterable<org.hamcrest.Matcher<? extends T>> elementMatchers)
           
 
Method Summary
static
<T> org.hamcrest.Matcher<java.lang.Iterable<T>>
consistsOf(java.lang.Iterable<T> elements)
           
static
<T> org.hamcrest.Matcher<java.lang.Iterable<T>>
consistsOf(T... elements)
           
static
<T> org.hamcrest.Matcher<java.lang.Iterable<T>>
consistsOfElementsThat(java.lang.Iterable<org.hamcrest.Matcher<? extends T>> elementMatchers)
           
static
<T> org.hamcrest.Matcher<java.lang.Iterable<T>>
consistsOfElementsThat(org.hamcrest.Matcher<? extends T>... elementMatchers)
           
 void describeTo(org.hamcrest.Description description)
           
 boolean matchesSafely(java.lang.Iterable<T> elements)
           
 
Methods inherited from class org.hamcrest.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

IsCollectionEqual

protected IsCollectionEqual(java.lang.Iterable<org.hamcrest.Matcher<? extends T>> elementMatchers)
Method Detail

matchesSafely

public boolean matchesSafely(java.lang.Iterable<T> elements)
Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<java.lang.Iterable<T>>

describeTo

public void describeTo(org.hamcrest.Description description)

consistsOf

public static <T> org.hamcrest.Matcher<java.lang.Iterable<T>> consistsOf(T... elements)

consistsOf

public static <T> org.hamcrest.Matcher<java.lang.Iterable<T>> consistsOf(java.lang.Iterable<T> elements)

consistsOfElementsThat

public static <T> org.hamcrest.Matcher<java.lang.Iterable<T>> consistsOfElementsThat(org.hamcrest.Matcher<? extends T>... elementMatchers)

consistsOfElementsThat

public static <T> org.hamcrest.Matcher<java.lang.Iterable<T>> consistsOfElementsThat(java.lang.Iterable<org.hamcrest.Matcher<? extends T>> elementMatchers)


Copyright © 2011 Atlassian. All Rights Reserved.