mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
77153: Merged PLATFORM1 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 74000: ACE-1802 "MT / Cloud Restrict namespace URI of dynamic models." ACE-955 "Custom Content Models in Cloud" fix build git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@78011 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -85,11 +85,8 @@ public class RepoDictionaryDAOTest extends TestCase
|
||||
I18NUtil.registerResourceBundle(TEST_RESOURCE_MESSAGES);
|
||||
|
||||
// Instantiate Dictionary Service
|
||||
TenantService tenantService = new SingleTServiceImpl();
|
||||
// NamespaceDAOImpl namespaceDAO = new NamespaceDAOImpl();
|
||||
// namespaceDAO.setTenantService(tenantService);
|
||||
// initNamespaceCaches(namespaceDAO);
|
||||
|
||||
TenantService tenantService = new SingleTServiceImpl();
|
||||
|
||||
DictionaryDAOImpl dictionaryDAO = new DictionaryDAOImpl();
|
||||
dictionaryDAO.setTenantService(tenantService);
|
||||
initDictionaryCaches(dictionaryDAO);
|
||||
@@ -118,21 +115,11 @@ public class RepoDictionaryDAOTest extends TestCase
|
||||
SimpleCache<String,DictionaryRegistry> dictionaryCache = new DefaultSimpleCache<String, DictionaryRegistry>(11, getClass().getName() + ".dictionary");
|
||||
dictionaryDAO.setDictionaryRegistryCache(dictionaryCache);
|
||||
}
|
||||
|
||||
// private void initNamespaceCaches(NamespaceDAOImpl namespaceDAO)
|
||||
// {
|
||||
// SimpleCache<String, NamespaceRegistry> namespaceCache = new DefaultSimpleCache<String, NamespaceRegistry>(11, getClass().getName() + ".namespace");
|
||||
// namespaceDAO.setNamespaceRegistryCache(namespaceCache);
|
||||
// }
|
||||
|
||||
|
||||
public void testBootstrap()
|
||||
{
|
||||
TenantService tenantService = new SingleTServiceImpl();
|
||||
// NamespaceDAOImpl namespaceDAO = new NamespaceDAOImpl();
|
||||
// namespaceDAO.setTenantService(tenantService);
|
||||
// initNamespaceCaches(namespaceDAO);
|
||||
|
||||
|
||||
DictionaryDAOImpl dictionaryDAO = new DictionaryDAOImpl();
|
||||
dictionaryDAO.setTenantService(tenantService);
|
||||
initDictionaryCaches(dictionaryDAO);
|
||||
@@ -416,17 +403,11 @@ public class RepoDictionaryDAOTest extends TestCase
|
||||
{
|
||||
// source dictionary
|
||||
TenantService tenantService = new SingleTServiceImpl();
|
||||
// NamespaceDAOImpl namespaceDAO = new NamespaceDAOImpl();
|
||||
// namespaceDAO.setTenantService(tenantService);
|
||||
// initNamespaceCaches(namespaceDAO);
|
||||
DictionaryDAOImpl dictionaryDAO = new DictionaryDAOImpl();
|
||||
dictionaryDAO.setTenantService(tenantService);
|
||||
initDictionaryCaches(dictionaryDAO);
|
||||
|
||||
// destination dictionary
|
||||
// NamespaceDAOImpl namespaceDAO2 = new NamespaceDAOImpl();
|
||||
// namespaceDAO2.setTenantService(tenantService);
|
||||
// initNamespaceCaches(namespaceDAO2);
|
||||
DictionaryDAOImpl dictionaryDAO2 = new DictionaryDAOImpl();
|
||||
dictionaryDAO2.setTenantService(tenantService);
|
||||
initDictionaryCaches(dictionaryDAO2);
|
||||
|
Reference in New Issue
Block a user