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)
77354: build fix following merge from PLATFORM1 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@78142 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -23,7 +23,6 @@ public class AllUnitTestsSuite extends TestSuite
|
|||||||
|
|
||||||
static void unitTests(TestSuite suite)
|
static void unitTests(TestSuite suite)
|
||||||
{
|
{
|
||||||
suite.addTestSuite(org.alfresco.cmis.PropertyFilterTest.class);
|
|
||||||
suite.addTestSuite(org.alfresco.encryption.EncryptorTest.class);
|
suite.addTestSuite(org.alfresco.encryption.EncryptorTest.class);
|
||||||
suite.addTestSuite(org.alfresco.encryption.KeyStoreKeyProviderTest.class);
|
suite.addTestSuite(org.alfresco.encryption.KeyStoreKeyProviderTest.class);
|
||||||
suite.addTest(new JUnit4TestAdapter(org.alfresco.filesys.config.ServerConfigurationBeanTest.class));
|
suite.addTest(new JUnit4TestAdapter(org.alfresco.filesys.config.ServerConfigurationBeanTest.class));
|
||||||
|
@@ -2228,9 +2228,9 @@ public class CMISTest
|
|||||||
AccessControlEntryImpl ace = new AccessControlEntryImpl();
|
AccessControlEntryImpl ace = new AccessControlEntryImpl();
|
||||||
ace.setPrincipal(new AccessControlPrincipalDataImpl(testGroup));
|
ace.setPrincipal(new AccessControlPrincipalDataImpl(testGroup));
|
||||||
List<String> putPermissions = new ArrayList<String>();
|
List<String> putPermissions = new ArrayList<String>();
|
||||||
putPermissions.add(CMISAccessControlService.CMIS_ALL_PERMISSION);
|
putPermissions.add(BasicPermissions.ALL);
|
||||||
putPermissions.add(CMISAccessControlService.CMIS_READ_PERMISSION);
|
putPermissions.add(BasicPermissions.READ);
|
||||||
putPermissions.add(CMISAccessControlService.CMIS_WRITE_PERMISSION);
|
putPermissions.add(BasicPermissions.WRITE);
|
||||||
ace.setPermissions(putPermissions);
|
ace.setPermissions(putPermissions);
|
||||||
ace.setDirect(true);
|
ace.setDirect(true);
|
||||||
acesList.add(ace);
|
acesList.add(ace);
|
||||||
@@ -2267,6 +2267,38 @@ public class CMISTest
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void dictionaryTest()
|
||||||
|
{
|
||||||
|
TenantUtil.runAsUserTenant(new TenantRunAsWork<Void>()
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public Void doWork() throws Exception
|
||||||
|
{
|
||||||
|
M2Model customModel = M2Model.createModel(
|
||||||
|
Thread.currentThread().getContextClassLoader().
|
||||||
|
getResourceAsStream("dictionary/dictionarydaotest_model1.xml"));
|
||||||
|
dictionaryDAO.putModel(customModel);
|
||||||
|
assertNotNull(cmisDictionaryService.findType("P:cm:dublincore"));
|
||||||
|
TypeDefinitionWrapper td = cmisDictionaryService.findType("D:daotest1:type1");
|
||||||
|
assertNotNull(td);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}, "user1", "tenant1");
|
||||||
|
|
||||||
|
TenantUtil.runAsUserTenant(new TenantRunAsWork<Void>()
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public Void doWork() throws Exception
|
||||||
|
{
|
||||||
|
assertNotNull(cmisDictionaryService.findType("P:cm:dublincore"));
|
||||||
|
TypeDefinitionWrapper td = cmisDictionaryService.findType("D:daotest1:type1");
|
||||||
|
assertNull(td);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}, "user2", "tenant2");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MNT-11304: Test that Alfresco has no default boundaries for decimals
|
* MNT-11304: Test that Alfresco has no default boundaries for decimals
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
@@ -2325,37 +2357,4 @@ public class CMISTest
|
|||||||
AuthenticationUtil.popAuthentication();
|
AuthenticationUtil.popAuthentication();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void dictionaryTest()
|
|
||||||
{
|
|
||||||
TenantUtil.runAsUserTenant(new TenantRunAsWork<Void>()
|
|
||||||
{
|
|
||||||
@Override
|
|
||||||
public Void doWork() throws Exception
|
|
||||||
{
|
|
||||||
M2Model customModel = M2Model.createModel(
|
|
||||||
Thread.currentThread().getContextClassLoader().
|
|
||||||
getResourceAsStream("dictionary/dictionarydaotest_model1.xml"));
|
|
||||||
dictionaryDAO.putModel(customModel);
|
|
||||||
assertNotNull(cmisDictionaryService.findType("P:cm:dublincore"));
|
|
||||||
TypeDefinitionWrapper td = cmisDictionaryService.findType("D:daotest1:type1");
|
|
||||||
assertNotNull(td);
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}, "user1", "tenant1");
|
|
||||||
|
|
||||||
TenantUtil.runAsUserTenant(new TenantRunAsWork<Void>()
|
|
||||||
{
|
|
||||||
@Override
|
|
||||||
public Void doWork() throws Exception
|
|
||||||
{
|
|
||||||
assertNotNull(cmisDictionaryService.findType("P:cm:dublincore"));
|
|
||||||
TypeDefinitionWrapper td = cmisDictionaryService.findType("D:daotest1:type1");
|
|
||||||
assertNull(td);
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}, "user2", "tenant2");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user