mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Content and folder node archival
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2767 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -145,6 +145,17 @@ public class DictionaryDAOTest extends TestCase
|
||||
// make sure it is the correct type of constraint
|
||||
assertTrue("Expected type REGEX constraint", constraint instanceof RegexConstraint);
|
||||
}
|
||||
|
||||
public void testArchive()
|
||||
{
|
||||
QName testFileQName = QName.createQName(TEST_URL, "file");
|
||||
ClassDefinition fileClassDef = service.getClass(testFileQName);
|
||||
assertTrue("File type should have the archive flag", fileClassDef.isArchive());
|
||||
|
||||
QName testFolderQName = QName.createQName(TEST_URL, "folder");
|
||||
ClassDefinition folderClassDef = service.getClass(testFolderQName);
|
||||
assertFalse("Folder type should not have the archive flag", folderClassDef.isArchive());
|
||||
}
|
||||
|
||||
public void testMandatoryEnforced()
|
||||
{
|
||||
|
Reference in New Issue
Block a user