mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10731 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -45,6 +45,38 @@ public class CMISDictionaryTest extends BaseCMISTest
|
||||
}
|
||||
}
|
||||
|
||||
public void testSubTypes()
|
||||
{
|
||||
cmisDictionaryService.setStrict(true);
|
||||
for (CMISTypeId name : cmisDictionaryService.getAllObjectTypeIds())
|
||||
{
|
||||
System.out.println(name + " children (strict)");
|
||||
for (CMISTypeId subName :cmisDictionaryService.getChildTypeIds(name, false))
|
||||
{
|
||||
System.out.println(" " + subName);
|
||||
}
|
||||
System.out.println(name + " descendants (strict)");
|
||||
for (CMISTypeId subName :cmisDictionaryService.getChildTypeIds(name, true))
|
||||
{
|
||||
System.out.println(" " + subName);
|
||||
}
|
||||
}
|
||||
cmisDictionaryService.setStrict(false);
|
||||
for (CMISTypeId name : cmisDictionaryService.getAllObjectTypeIds())
|
||||
{
|
||||
System.out.println(name + " children");
|
||||
for (CMISTypeId subName :cmisDictionaryService.getChildTypeIds(name, false))
|
||||
{
|
||||
System.out.println(" " + subName);
|
||||
}
|
||||
System.out.println(name + " descendants");
|
||||
for (CMISTypeId subName :cmisDictionaryService.getChildTypeIds(name, true))
|
||||
{
|
||||
System.out.println(" " + subName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void testTypeIds()
|
||||
{
|
||||
cmisDictionaryService.setStrict(false);
|
||||
|
Reference in New Issue
Block a user