What is the opposite of contains?
List<String> list = Arrays.asList("b", "a", "c");
// should fail, because "d" is not in the list
expectedInList = new String[]{"a","b", "c", "d"};
Assert.assertThat(list, Matchers.contains(expectedInList));
// should fail, because a IS in the list
shouldNotBeInList = Arrays.asList("a","e", "f", "d");
Assert.assertThat(list, _does_not_contains_any_of_(shouldNotBeInList)));
what should be _does_not_contains_any_of_
?
contains
method? i.e.!contains(shouldNotBeInList)
I haven't done much of this, so I'm not sure if it'll work, but its worth a try. – Nook