protected CmisTestResult assertNotAllowableAction(CmisObject object, Action action, CmisTestResult success, CmisTestResult failure) { AllowableActions allowableActions = object.getAllowableActions(); if (allowableActions != null && allowableActions.getAllowableActions() != null) { if (!allowableActions.getAllowableActions().contains(action)) { return success; } } return failure; }
protected CmisTestResult assertAllowableAction(CmisObject object, Action action, CmisTestResult success, CmisTestResult failure) { AllowableActions allowableActions = object.getAllowableActions(); if (allowableActions != null && allowableActions.getAllowableActions() != null) { if (allowableActions.getAllowableActions().contains(action)) { return success; } } return failure; }
addResult(results, assertEquals(expected.getAllowableActions(), actual.getAllowableActions(), null, f));
if ((object.getAllowableActions() == null) || (object.getAllowableActions().getAllowableActions() == null)) { addResult(results, createResult(FAILURE, "Object has no allowable actions!")); } else { Set<Action> actions = object.getAllowableActions().getAllowableActions(); f = createResult(FAILURE, "Object allowable actions don't match the allowable actions returned by getAllowableActions()!"); addResult(results, assertEqualSet(object.getAllowableActions().getAllowableActions(), allowableActions.getAllowableActions(), null, f));
addResult(assertNull(child.getAllowableActions(), null, f));