- private static void assertCandidateEquals(final DataTreeCandidate expected, final DataTreeCandidate actual) {
- assertEquals("root path", expected.getRootPath(), actual.getRootPath());
- assertCandidateNodeEquals(expected.getRootNode(), actual.getRootNode());
+ private static void assertCandidateEquals(final DataTreeCandidate expected,
+ final DataTreeCandidateWithVersion actual) {
+ final DataTreeCandidate candidate = actual.getCandidate();
+ assertEquals("root path", expected.getRootPath(), candidate.getRootPath());
+ assertCandidateNodeEquals(expected.getRootNode(), candidate.getRootNode());