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)
77150: Merged PLATFORM1 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 73977: ACE-1802 "MT / Cloud Restrict namespace URI of dynamic models." ACE-955 "Custom Content Models in Cloud" git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@78008 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -57,10 +57,10 @@ public class PolicyComponentTest extends TestCase
|
||||
{
|
||||
// Instantiate Dictionary Service
|
||||
TenantService tenantService = new SingleTServiceImpl();
|
||||
NamespaceDAOImpl namespaceDAO = new NamespaceDAOImpl();
|
||||
namespaceDAO.setTenantService(tenantService);
|
||||
initNamespaceCaches(namespaceDAO);
|
||||
DictionaryDAOImpl dictionaryDAO = new DictionaryDAOImpl(namespaceDAO);
|
||||
// NamespaceDAOImpl namespaceDAO = new NamespaceDAOImpl();
|
||||
// namespaceDAO.setTenantService(tenantService);
|
||||
// initNamespaceCaches(namespaceDAO);
|
||||
DictionaryDAOImpl dictionaryDAO = new DictionaryDAOImpl();
|
||||
dictionaryDAO.setTenantService(tenantService);
|
||||
initDictionaryCaches(dictionaryDAO);
|
||||
|
||||
@@ -88,12 +88,12 @@ public class PolicyComponentTest extends TestCase
|
||||
dictionaryDAO.setDictionaryRegistryCache(new NullCache());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private void initNamespaceCaches(NamespaceDAOImpl namespaceDAO)
|
||||
{
|
||||
// note: unit tested here with null cache
|
||||
namespaceDAO.setNamespaceRegistryCache(new NullCache());
|
||||
}
|
||||
// @SuppressWarnings("unchecked")
|
||||
// private void initNamespaceCaches(NamespaceDAOImpl namespaceDAO)
|
||||
// {
|
||||
// // note: unit tested here with null cache
|
||||
// namespaceDAO.setNamespaceRegistryCache(new NullCache());
|
||||
// }
|
||||
|
||||
public void testJavaBehaviour()
|
||||
{
|
||||
|
Reference in New Issue
Block a user