mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-3801: removed superfluous test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22597 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -278,27 +278,6 @@ public class AVMLockingServiceTest extends TestCase
|
||||
assertFalse(lockingService.hasAccess(testWP1, "Sunnydale:/ScrapHeap/Adam/plans.txt", "Willow"));
|
||||
assertFalse(lockingService.hasAccess(testWP1, "Sunnydale:/ScrapHeap/Adam/plans.txt", "Tara"));
|
||||
assertFalse(lockingService.hasAccess(testWP1, "Sunnydale:/ScrapHeap/Adam/plans.txt", "Xander"));
|
||||
|
||||
|
||||
AuthenticationUtil.runAs(new AuthenticationUtil.RunAsWork<Object>()
|
||||
{
|
||||
public Object doWork() throws Exception
|
||||
{
|
||||
try
|
||||
{
|
||||
lockingService.modifyLock(
|
||||
testWP1, "ScrapHeap/Adam/plans.txt", "Spike",
|
||||
testWP1, "TheInitiative/Adam/plans.txt", EMPTY_MAP);
|
||||
fail("Failed to prevent lock modification by non-owner.");
|
||||
}
|
||||
catch (AVMLockingException e)
|
||||
{
|
||||
// Expected
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}, "Buffy");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user