mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Afternoon merge.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@2915 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -87,10 +87,9 @@ public class HibernatePermissionTest extends BaseSpringTest
|
||||
{
|
||||
// create a new Node
|
||||
DbAccessControlList accessControlList = new DbAccessControlListImpl();
|
||||
accessControlList.setNode(node);
|
||||
accessControlList.setInherits(true);
|
||||
|
||||
Serializable id = getSession().save(accessControlList);
|
||||
node.setAccessControlList(accessControlList);
|
||||
|
||||
// throw the reference away and get the a new one for the id
|
||||
accessControlList = (DbAccessControlList) getSession().load(DbAccessControlListImpl.class, id);
|
||||
@@ -166,9 +165,9 @@ public class HibernatePermissionTest extends BaseSpringTest
|
||||
{
|
||||
// create a new access control list for the node
|
||||
DbAccessControlList accessControlList = new DbAccessControlListImpl();
|
||||
accessControlList.setNode(node);
|
||||
accessControlList.setInherits(true);
|
||||
Serializable nodeAclId = getSession().save(accessControlList);
|
||||
node.setAccessControlList(accessControlList);
|
||||
|
||||
DbAuthority recipient = new DbAuthorityImpl();
|
||||
recipient.setRecipient("Test");
|
||||
@@ -196,6 +195,7 @@ public class HibernatePermissionTest extends BaseSpringTest
|
||||
assertEquals(1, accessControlEntry.getAuthority().getExternalKeys().size());
|
||||
|
||||
// Check that deletion of the list cascades
|
||||
node.setAccessControlList(null);
|
||||
getSession().delete(accessControlList);
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user