@Test public void detectsDifferentObjectKeys() { Node actual = Node.objectNode().withMember("foo", Node.from("bar")); Node expected = Node.objectNode().withMember("foo", Node.from("baz")); assertThat(NodeDiff.diff(actual, expected), contains("[/foo]: Expected `\"baz\"` but found `\"bar\"`")); }
static List<String> diff(ToNode actual, ToNode expected) { return new NodeDiff().findDifferences(actual.toNode(), expected.toNode(), "") .collect(Collectors.toList()); }
NodeDiff { static List<String> diff(ToNode actual, ToNode expected) { return new NodeDiff().findDifferences(actual.toNode(), expected.toNode(), "") .collect(Collectors.toList()); } }
NodeDiff { static List<String> diff(ToNode actual, ToNode expected) { return new NodeDiff().findDifferences(actual.toNode(), expected.toNode(), "") .collect(Collectors.toList()); } NodeDiff(); }
NodeDiff { static List<String> diff(ToNode actual, ToNode expected) { return new NodeDiff().findDifferences(actual.toNode(), expected.toNode(), "") .collect(Collectors.toList()); } NodeDiff();  }
NodeDiff { static List<String> diff(ToNode actual, ToNode expected) { return new NodeDiff().findDifferences(actual.toNode(), expected.toNode(), "") .collect(Collectors.toList()); } NodeDiff();   }