f = createResult(FAILURE, "Child is not fileable! Id: " + child.getId() + " / Type: "
+ child.getType().getId());
addResult(results, assertIsTrue(child instanceof FileableCmisObject, null, f));
if (child instanceof FileableCmisObject) {
FileableCmisObject fileableChild = (FileableCmisObject) child;
Set<Action> actions = fileableChild.getAllowableActions().getAllowableActions();
boolean hasObjectParentsAction = actions.contains(Action.CAN_GET_OBJECT_PARENTS);
boolean hasFolderParentAction = actions.contains(Action.CAN_GET_FOLDER_PARENT);
if (hasObjectParentsAction || hasFolderParentAction) {
List<Folder> parents = fileableChild.getParents();
f = createResult(FAILURE, "Child has no parents! Id: " + child.getId());
addResult(results, assertIsTrue(parents.size() > 0, null, f));
boolean foundParent = false;