Package de.danielbechler.diff.mock

Examples of de.danielbechler.diff.mock.ObjectWithCollection


    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();
  }
View Full Code Here

TOP

Related Classes of de.danielbechler.diff.mock.ObjectWithCollection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.