User Tools

Site Tools


java:hamcrest:collections

Hamcrest collection matcher

Is containing

assertThat(collection, hasItem(removed));

Is not containing

assertThat(collection, not(hasItem(removed)));
java/hamcrest/collections.txt · Last modified: 2020/08/16 10:01 by els