NodeAssertions.assertThat(node).self().hasNoChildren();
}
public void testCompareCollectionWithIgnoredCollectionProperty()
{
final ObjectWithCollection working = new ObjectWithCollection();
working.getCollection().add("foo");
final ObjectDifferBuilder objectDifferBuilder = ObjectDifferBuilder.startBuilding();
objectDifferBuilder.inclusion()
.exclude()
.node(NodePath.with("collection"));
objectDiffer = objectDifferBuilder.build();
final DiffNode node = objectDiffer.compare(working, new ObjectWithCollection());
NodeAssertions.assertThat(node).self().hasState(DiffNode.State.UNTOUCHED);
NodeAssertions.assertThat(node).self().hasNoChildren();
}