コード例 #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);
 }
コード例 #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);
 }