Package de.danielbechler.diff.node

Examples of de.danielbechler.diff.node.DiffNode.childCount()


    final ObjectDiffer objectDiffer = ObjectDifferBuilder.buildDefault();
    final DiffNode node = objectDiffer.compare(modifiedPhoneBook, phoneBook);

    assertThat(node.hasChanges(), is(true));
    assertThat(node.hasChildren(), is(true));
    assertThat(node.childCount(), is(1));

    final DiffNode contactsNode = node.getChild("contacts");
    assertThat(contactsNode, IsNull.notNullValue());
    assertThat(contactsNode.hasChanges(), is(true));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.