There is probably a simple one-liner that I am just not finding here, but this is my question:
How do I check if an ArrayList contains all of the objects in another
Here is another example use of containsAll() that I have used for asserting that two arrays are equal in JUnit testing:
List expected = new ArrayList();
expected.add("this");
expected.add("that");
expected.add("another");
List actual = new ArrayListString();
actual.add("another");
actual.add("that");
actual.add("this");
Assert.assertTrue("The lists do not match!", expected.containsAll(actual));