- Fixed tests causing build to fail

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2362 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2006-02-13 20:38:22 +00:00
parent 3f6cff061e
commit 9eea769f9a
2 changed files with 10 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ import java.util.HashMap;
import java.util.List;
import org.alfresco.model.ContentModel;
import org.alfresco.repo.security.authentication.AuthenticationComponent;
import org.alfresco.service.cmr.lock.LockService;
import org.alfresco.service.cmr.lock.LockStatus;
import org.alfresco.service.cmr.lock.LockType;
@@ -71,7 +72,10 @@ public class LockServiceImplTest extends BaseSpringTest
this.nodeService = (NodeService)applicationContext.getBean("dbNodeService");
this.lockService = (LockService)applicationContext.getBean("lockService");
this.authenticationService = (AuthenticationService)applicationContext.getBean("authenticationService");
authenticationService.clearCurrentSecurityContext();
// Set the authentication
AuthenticationComponent authComponent = (AuthenticationComponent)this.applicationContext.getBean("authenticationComponent");
authComponent.setSystemUserAsCurrentUser();
// Create the node properties
HashMap<QName, Serializable> nodeProperties = new HashMap<QName, Serializable>();