Actually I'm testing an item of a collection contains a property key equalTo("key")
and has a property value equalTo("value")
, in two sentences:
assertThat(categorizedFuaDto.getMetainfos(), contains(hasProperty("key", equalTo(receivedMetaInfoValue.getKey()))));
assertThat(categorizedFuaDto.getMetainfos(), contains(hasProperty("value", equalTo(receivedMetaInfoValue.getValue()))));
Is it possible to merge them in one?