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:
Steven Glover
2010-09-16 15:38:52 +00:00
parent c6b3c0c46a
commit 1a2778b6c1

View File

@@ -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");
}
/**