From bbfb3f7f2263166df0fd9f83ef9c2797e03cabed Mon Sep 17 00:00:00 2001 From: Britt Park Date: Thu, 4 Jan 2007 06:57:52 +0000 Subject: [PATCH] Fixed test and RMI broken-ness. Switched from 'authenticationService' to 'AuthenticationService' in a couple of places. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4715 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- config/alfresco/authentication-services-context.xml | 2 +- source/java/org/alfresco/repo/avm/AVMServiceTest.java | 9 ++++----- .../java/org/alfresco/repo/avm/AVMServiceTestBase.java | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/config/alfresco/authentication-services-context.xml b/config/alfresco/authentication-services-context.xml index 8090e8673a..8694b6d5df 100644 --- a/config/alfresco/authentication-services-context.xml +++ b/config/alfresco/authentication-services-context.xml @@ -324,7 +324,7 @@ - + org.alfresco.service.cmr.security.AuthenticationService diff --git a/source/java/org/alfresco/repo/avm/AVMServiceTest.java b/source/java/org/alfresco/repo/avm/AVMServiceTest.java index 398bd20d70..73d59f0210 100644 --- a/source/java/org/alfresco/repo/avm/AVMServiceTest.java +++ b/source/java/org/alfresco/repo/avm/AVMServiceTest.java @@ -41,7 +41,6 @@ import org.alfresco.repo.avm.actions.SimpleAVMPromoteAction; import org.alfresco.repo.avm.actions.SimpleAVMSubmitAction; import org.alfresco.repo.avm.util.BulkLoader; import org.alfresco.repo.domain.PropertyValue; -import org.alfresco.repo.security.authentication.AuthenticationComponent; import org.alfresco.repo.transaction.RetryingTransactionHelper; import org.alfresco.repo.transaction.TransactionUtil; import org.alfresco.service.cmr.avm.AVMBadArgumentException; @@ -3229,8 +3228,8 @@ public class AVMServiceTest extends AVMServiceTestBase { setupBasicTree(); PermissionService perm = (PermissionService)fContext.getBean("PermissionService"); - AuthenticationComponent ac = (AuthenticationComponent)fContext.getBean("authenticationComponent"); - ac.authenticate("admin", "admin".toCharArray()); + // AuthenticationService ac = (AuthenticationService)fContext.getBean("AuthenticationService"); + // ac.authenticate("admin", "admin".toCharArray()); perm.setPermission(AVMNodeConverter.ToNodeRef(-1, "main:/a/b/c/foo"), PermissionService.ADMINISTRATOR_AUTHORITY, PermissionService.ALL_PERMISSIONS, @@ -3261,8 +3260,8 @@ public class AVMServiceTest extends AVMServiceTestBase { setupBasicTree(); FileFolderService ffs = (FileFolderService)fContext.getBean("FileFolderService"); - AuthenticationComponent ac = (AuthenticationComponent)fContext.getBean("authenticationComponent"); - ac.authenticate("admin", "admin".toCharArray()); + // AuthenticationComponent ac = (AuthenticationComponent)fContext.getBean("authenticationComponent"); + // ac.authenticate("admin", "admin".toCharArray()); assertTrue(ffs.create(AVMNodeConverter.ToNodeRef(-1, "main:/a/b/c/"), "banana", WCMModel.TYPE_AVM_PLAIN_CONTENT) != null); assertTrue(ffs.create(AVMNodeConverter.ToNodeRef(-1, "main://"), diff --git a/source/java/org/alfresco/repo/avm/AVMServiceTestBase.java b/source/java/org/alfresco/repo/avm/AVMServiceTestBase.java index ca38eab308..5e273ddd5d 100644 --- a/source/java/org/alfresco/repo/avm/AVMServiceTestBase.java +++ b/source/java/org/alfresco/repo/avm/AVMServiceTestBase.java @@ -76,7 +76,7 @@ public class AVMServiceTestBase extends TestCase fService = (AVMService)fContext.getBean("AVMService"); fReaper = (OrphanReaper)fContext.getBean("orphanReaper"); fSyncService = (AVMSyncService)fContext.getBean("AVMSyncService"); - AuthenticationService authService = (AuthenticationService)fContext.getBean("authenticationService"); + AuthenticationService authService = (AuthenticationService)fContext.getBean("AuthenticationService"); authService.authenticate("admin", "admin".toCharArray()); CreateStoreTxnListener cstl = (CreateStoreTxnListener)fContext.getBean("createStoreTxnListener"); cstl.addCallback(