AVMLockingAwareService does not take out locks for operations on staging.

AVMLockingAwareService does not take out locks on Directories.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6072 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2007-06-22 17:35:37 +00:00
parent 3f107708f8
commit 838e14cc85
3 changed files with 17 additions and 12 deletions

View File

@@ -108,7 +108,6 @@ public class AVMServiceTest extends AVMServiceTestBase
{
AVMService oldService = fService;
fService = (AVMService)fContext.getBean("AVMLockingAwareService");
AVMLockingService lockingService = (AVMLockingService)fContext.getBean("AVMLockingService");
AuthenticationService authService = (AuthenticationService)fContext.getBean("AuthenticationService");
try
{
@@ -119,18 +118,9 @@ public class AVMServiceTest extends AVMServiceTestBase
new PropertyValue(QName.createQName(null, "silly"), "Nothing."));
setupBasicTree0();
authService.authenticateAsGuest();
assertEquals(2, lockingService.getUsersLocks("admin").size());
assertEquals(0, fLockingService.getUsersLocks("admin").size());
List<AVMDifference> diffs = fSyncService.compare(-1, "main:/", -1, "test:/", null);
fSyncService.update(diffs, null, false, false, false, false, null, null);
try
{
fService.getFileOutputStream("test:/a/b/c/foo").close();
fail("Shouldn't be able to lock.");
}
catch (AVMLockingException ale)
{
// Do nothing. Success.
}
}
catch (Exception e)
{
@@ -140,7 +130,7 @@ public class AVMServiceTest extends AVMServiceTestBase
finally
{
fService = oldService;
lockingService.removeWebProject("main");
fLockingService.removeWebProject("main");
authService.authenticate("admin", "admin".toCharArray());
}
}