mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (Cloud33/4.3) to HEAD (Cloud33/4.3)
62905: Merged PLATFORM1 (Cloud33) to HEAD-BUG-FIX (Cloud33/4.3) 61335: ACE-33 implementation of cmis:items add permissions create and delete of cmis:items some unit test fixes new unit test for items git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62958 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1399,6 +1399,38 @@ public class CMISTest
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* ACE-33
|
||||
*
|
||||
* Cmis Item support
|
||||
*/
|
||||
@Test
|
||||
public void testItems()
|
||||
{
|
||||
|
||||
withCmisService(new CmisServiceCallback<String>() {
|
||||
@Override
|
||||
public String execute(CmisService cmisService) {
|
||||
List<RepositoryInfo> repositories = cmisService.getRepositoryInfos(null);
|
||||
assertTrue(repositories.size() > 0);
|
||||
RepositoryInfo repo = repositories.get(0);
|
||||
String repositoryId = repo.getId();
|
||||
|
||||
TypeDefinition def = cmisService.getTypeDefinition(repositoryId, "cmis:item", null);
|
||||
assertNotNull("the cmis:item type is not defined", def);
|
||||
|
||||
TypeDefinition p = cmisService.getTypeDefinition(repositoryId, "I:cm:person", null);
|
||||
assertNotNull("the I:cm:person type is not defined", def);
|
||||
|
||||
ObjectList result = cmisService.query(repositoryId, "select * from cm:person", Boolean.FALSE, Boolean.TRUE, IncludeRelationships.NONE, "", BigInteger.TEN, BigInteger.ZERO, null);
|
||||
assertTrue("", result.getNumItems().intValue() > 0);
|
||||
return "";
|
||||
|
||||
};
|
||||
}, CmisVersion.CMIS_1_1);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMNT10529() throws Exception
|
||||
|
Reference in New Issue
Block a user