org.jbpm.test.assertion
Class CollectionAssertions

java.lang.Object
  extended by org.jbpm.test.assertion.CollectionAssertions

public class CollectionAssertions
extends java.lang.Object

Utility class with assertions for collections.

Author:
Joram Barrez

Method Summary
static
<T> void
assertContainsSameElements(java.util.Collection<T> collection1, java.util.Collection<T> collection2)
          Compares the elements of the two given collections.
static
<T> void
assertContainsSameElements(java.util.Collection<T> collection1, T... elements)
          Compares the elements of the two given collections.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertContainsSameElements

public static <T> void assertContainsSameElements(java.util.Collection<T> collection1,
                                                  java.util.Collection<T> collection2)
Compares the elements of the two given collections. The order of elements is not checked.


assertContainsSameElements

public static <T> void assertContainsSameElements(java.util.Collection<T> collection1,
                                                  T... elements)
Compares the elements of the two given collections. The order of elements is not checked.



Copyright © 2010 JBoss Community. All Rights Reserved.