Ejemplo n.º 1
0
 public <T> void assertContainsElements(
     Collection<? extends T> collection, Collection<T> expected) {
   ArrayList<T> copy = new ArrayList<T>(collection);
   copy.retainAll(expected);
   assertSameElements(toString(collection), copy, expected);
 }
Ejemplo n.º 2
0
 public <T> void assertContainsOrdered(
     Collection<? extends T> collection, Collection<T> expected) {
   ArrayList<T> copy = new ArrayList<T>(collection);
   copy.retainAll(expected);
   assertOrderedEquals(toString(collection), copy, expected);
 }