mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged BRANCHES/DEV/V4.0-BUG-FIX to HEAD:
35751: Addendum to fix for ALF-11923. Fixing failing test case by tightening up delete behaviour. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@35753 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -162,11 +162,19 @@ public class RuleServiceTest extends BaseWebScriptTest
|
||||
@Override
|
||||
public Void execute() throws Throwable
|
||||
{
|
||||
nodeService.deleteNode(testNodeRef2);
|
||||
nodeService.deleteNode(testNodeRef);
|
||||
nodeService.deleteNode(testWorkNodeRef);
|
||||
deleteNodeIfExists(testNodeRef2);
|
||||
deleteNodeIfExists(testNodeRef);
|
||||
deleteNodeIfExists(testWorkNodeRef);
|
||||
return null;
|
||||
}
|
||||
|
||||
private void deleteNodeIfExists(NodeRef nodeRef)
|
||||
{
|
||||
if (nodeService.exists(nodeRef))
|
||||
{
|
||||
nodeService.deleteNode(nodeRef);
|
||||
}
|
||||
}
|
||||
};
|
||||
this.transactionService.getRetryingTransactionHelper().doInTransaction(deleteCallback);
|
||||
this.authenticationComponent.clearCurrentSecurityContext();
|
||||
|
Reference in New Issue
Block a user