public class RemoteContentRestrictionServiceAcceptanceTest extends Object
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.ExpectedException |
expectedException |
static com.atlassian.confluence.test.stateless.rules.InstallPluginRule |
installPluginRule |
org.junit.rules.TestName |
testName |
| Constructor and Description |
|---|
RemoteContentRestrictionServiceAcceptanceTest() |
public org.junit.rules.ExpectedException expectedException
public org.junit.rules.TestName testName
public static com.atlassian.confluence.test.stateless.rules.InstallPluginRule installPluginRule
public RemoteContentRestrictionServiceAcceptanceTest()
public static void setup()
public void testGetRestrictionsGroupedByOperationUnexpanded()
public void testGetRestrictionsGroupedByOperationExpandRead()
public void testGetRestrictionsGroupedByOperationExpandReadContent()
public void testGetRestrictionsGroupedByOperationExpandRestrictions()
public void testGetRestrictionsGroupedByOperationExpandReadRestrictionsSubjects()
public void testGetRestrictionsForOperationNotFound()
public void testGetRestrictionsForOperationInvalidOp()
public void testGetRestrictionForOperationUnexpanded()
public void testGetRestrictionForOperationExpandContent()
public void testGetRestrictionForOperationExpandUsers()
public void testGetRestrictionForOperationExpandGroups()
public void testGetRestrictionForOperationUserPagination()
public void testGetAllRestrictionsNonExistingPage()
throws NotFoundException
NotFoundExceptionpublic void testGetAllRestrictionsUnexpanded()
throws Exception
Exceptionpublic void testGetAllRestrictionsExpandRestrictions()
throws Exception
Exceptionpublic void testGetAllRestrictionsExpandRestrictionsUsersGroups()
throws Exception
Exceptionpublic void testGetAllRestrictionsSpecific()
throws Exception
Exceptionpublic void testUpdateRestrictionsThrowsNullContentId()
throws Exception
Exceptionpublic void testUpdateRestrictionsThrowsNullRestrictions()
throws Exception
Exceptionpublic void testUpdateRestrictionsThrowsUnknownUser()
throws Exception
Exceptionpublic void testUpdateRestrictionsThrowsUnknownGroup()
throws Exception
Exceptionpublic void testUpdateRestrictionsThrowsUnknownContent()
throws Exception
Exceptionpublic void testUpdateRestrictionsThrowsNotPermittedContent()
throws Exception
Exceptionpublic void testUpdateRestrictionsNotAlterableContent()
throws Exception
Exceptionpublic void testUpdateRestrictionsWontAllowSkipSelf()
throws Exception
Exceptionpublic void testUpdateRestrictionsHappyWhenNotSkippingSelf()
throws Exception
Exceptionpublic void testUpdateRestrictionsHappyPathUserRead()
throws Exception
Exceptionpublic void testUpdateRestrictionsEmptyUserListMakesReadUnrestricted()
throws Exception
Exceptionpublic void testUpdateNewSpecifiedRestrictionsReplaceOldOnes()
throws Exception
Exceptionpublic void testAddRestrictionsDoesAddToEmptyPage()
throws Exception
Exceptionpublic void testAddRestrictionsDoesNotChangeExisting()
throws Exception
Exceptionpublic void testDeleteRestrictionsDoesDeleteRestrictions()
throws Exception
Exceptionpublic void testDeleteContentRestrictionForSubjectCannotRemoveSelf()
throws Exception
Exceptionpublic void testDeleteContentRestrictionForSubjectCannotRemoveSelfEvenAdmin()
throws Exception
Exceptionpublic void testDeleteContentRestrictionForSubjectHappyPath()
throws Exception
Exceptionpublic void testDeleteContentRestrictionForSubjectByOneTillHappy()
throws Exception
Exceptionpublic void testDeleteContentRestrictionForSubjectWrongRestrictionThrowsNotFound()
throws Exception
Exceptionpublic void testAddDirectContentRestrictionForSubjectCannotRestrictFromSelf()
throws Exception
Exceptionpublic void testAddDirectContentRestrictionForSubjectCannotRestrictFromSelfEvenAdmin()
throws Exception
Exceptionpublic void testAddDirectContentRestrictionForSubjectHappyPath()
throws Exception
Exceptionpublic void testAddDirectContentRestrictionForSubjectThrowsWhenCannotView()
throws Exception
Exceptionpublic void testAddDirectContentRestrictionForSubjectThrowsWhenCannotEdit()
throws Exception
Exceptionpublic void testAddContentRestrictionWhenCreate()
public void testAddContentRestrictionForCustomContentWhenCreate()
throws Exception
Exceptionpublic void testAddContentRestrictionWithoutIncludingCurrentUserWhenCreateShouldThrowException()
public void testUpdateContentRestrictionWhenUpdate()
public void testUpdateContentRestrictionWithoutIncludingCurrentUserWhenUpdateShouldThrowException()
public void testCannotAddRestrictionsToCommentInCreation()
Copyright © 2003–2017 Atlassian. All rights reserved.