f = createResult(FAILURE, "Folder is not found in childs parents! Id: " + child.getId());
addResult(results, assertIsTrue(parents.size() > 0, null, f));
}
// get object by id and compare
CmisObject objectById = session.getObject(child.getId(), SELECT_ALL_NO_CACHE_OC);
f = createResult(FAILURE, "Child and object fetched by id don't match! Id: " + child.getId());
addResult(results, assertEquals(child, objectById, null, f, false, false));
// get object by path and compare
List<String> paths = ((FileableCmisObject) child).getPaths();
if (paths == null || paths.isEmpty()) {
addResult(results, createResult(FAILURE, "Child has no path! " + child.getId()));
} else {
for (String path : paths) {
CmisObject objectByPath = session.getObjectByPath(path, SELECT_ALL_NO_CACHE_OC);
f = createResult(FAILURE, "Child and object fetched by path don't match! Id: " + child.getId()
+ " / Path: " + path);
addResult(results, assertEquals(child, objectByPath, null, f, false, false));