public class RemoteContentRestrictionServiceAcceptanceTest extends AbstractRemoteServiceAcceptanceTest
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.ExpectedException |
expectedException |
Group |
TEST_GROUP |
Space |
TEST_SPACE |
protected TestData |
testData |
proxyCreatorrpc, testHelper, testName| Constructor and Description |
|---|
RemoteContentRestrictionServiceAcceptanceTest() |
checkPageResponse, initialize, prepareMspacesWithNpages, prepareSpacesAndUsersWithCascadedVisibility, proxySetUp, spaceByNumber, testServiceProxy, userByNumbercommonSetUp, directoryConfiguration, exceptionSupplier, pauseAndFlushIndexQueue, usersprotected TestData testData
public Space TEST_SPACE
public Group TEST_GROUP
public org.junit.rules.ExpectedException expectedException
public RemoteContentRestrictionServiceAcceptanceTest()
protected Object getService()
getService in class AbstractRemoteServiceAcceptanceTestprotected Class getServiceClass()
getServiceClass in class AbstractRemoteServiceAcceptanceTestprotected Collection<String> getExcludedMethodNamesForProxyTest()
AbstractRemoteServiceAcceptanceTestOverridden by test classes for services with methods that are known to be implemented on the proxy, but not able to be tested with the logic in testServiceProxy. If we end up fixing the logic, these exclusions can (and should) be removed.
getExcludedMethodNamesForProxyTest in class AbstractRemoteServiceAcceptanceTestpublic 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
ExceptionCopyright © 2003–2017 Atlassian. All rights reserved.