diff --git a/source/java/org/alfresco/repo/rule/RuleServiceCoverageTest.java b/source/java/org/alfresco/repo/rule/RuleServiceCoverageTest.java index 2fda39a4b6..5cf83e3703 100644 --- a/source/java/org/alfresco/repo/rule/RuleServiceCoverageTest.java +++ b/source/java/org/alfresco/repo/rule/RuleServiceCoverageTest.java @@ -775,6 +775,9 @@ public class RuleServiceCoverageTest extends TestCase //System.out.println(NodeStoreInspector.dumpNodeStore(this.nodeService, this.testStoreRef)); + AuthenticationComponent authenticationComponent = (AuthenticationComponent)applicationContext.getBean("authenticationComponent"); + authenticationComponent.setCurrentUser(authenticationComponent.getSystemUserName()); + // Check that the created node is still there List origRefs = this.nodeService.getChildAssocs( this.nodeRef,