mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
MOB-1073: Fix build. Use dictionaryService.getAspect() rather than dictionaryService.getType() to look up aspects
- Also improved Boolean logic so that it's possible to switch on archiving via an aspect (as suggested by Derek) - M2ClassDefinition.getArchive() now returns true, false or null - false takes precedence and is the ultimate default - fixed JIBX classpath git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16022 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -307,20 +307,20 @@ public class DictionaryDAOTest extends TestCase
|
||||
{
|
||||
QName testFileQName = QName.createQName(TEST_URL, "file");
|
||||
ClassDefinition fileClassDef = service.getClass(testFileQName);
|
||||
assertTrue("File type should have the archive flag", fileClassDef.isArchive());
|
||||
assertTrue("File type should have the archive flag", fileClassDef.getArchive());
|
||||
|
||||
QName testFileDerivedQName = QName.createQName(TEST_URL, "file-derived");
|
||||
ClassDefinition fileDerivedClassDef = service.getClass(testFileDerivedQName);
|
||||
assertTrue("Direct derived File type should have the archive flag", fileDerivedClassDef.isArchive());
|
||||
assertTrue("Direct derived File type should have the archive flag", fileDerivedClassDef.getArchive());
|
||||
|
||||
QName testFileDerivedNoArchiveQName = QName.createQName(TEST_URL, "file-derived-no-archive");
|
||||
ClassDefinition fileDerivedNoArchiveClassDef = service.getClass(testFileDerivedNoArchiveQName);
|
||||
assertFalse("Derived File with archive override type should NOT have the archive flag",
|
||||
fileDerivedNoArchiveClassDef.isArchive());
|
||||
fileDerivedNoArchiveClassDef.getArchive());
|
||||
|
||||
QName testFolderQName = QName.createQName(TEST_URL, "folder");
|
||||
ClassDefinition folderClassDef = service.getClass(testFolderQName);
|
||||
assertFalse("Folder type should not have the archive flag", folderClassDef.isArchive());
|
||||
assertNull("Folder type should not have the archive flag", folderClassDef.getArchive());
|
||||
}
|
||||
|
||||
public void testMandatoryEnforced()
|
||||
|
Reference in New Issue
Block a user