I'm looking for a solution to check that each items in a collection have the field expectedNullField
null.
The following doesn't work:
assertThat(aCollection).extracting("expectedNullField").isNull();
Note that the following works as expected:
assertThat(aCollection).extracting("expectedNotNullField").isNotNull();
Anybody to help me ?
Thanks.
assertThat(aCollection).filteredOn("expectedNullField", not(null)).isEmpty();
– Davidson