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 |
proxyCreator
rpc, testHelper, testName
Constructor and Description |
---|
RemoteContentRestrictionServiceAcceptanceTest() |
checkPageResponse, prepareMspacesWithNpages, prepareSpacesAndUsersWithCascadedVisibility, proxySetUp, spaceByNumber, testServiceProxy, userByNumber
commonSetUp, directoryConfiguration, exceptionSupplier, pauseAndFlushIndexQueue, users
protected TestData testData
public Space TEST_SPACE
public Group TEST_GROUP
public org.junit.rules.ExpectedException expectedException
public RemoteContentRestrictionServiceAcceptanceTest()
protected Object getService()
getService
in class AbstractRemoteServiceAcceptanceTest
protected Class getServiceClass()
getServiceClass
in class AbstractRemoteServiceAcceptanceTest
protected Collection<String> getExcludedMethodNamesForProxyTest()
AbstractRemoteServiceAcceptanceTest
Overridden 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 AbstractRemoteServiceAcceptanceTest
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
NotFoundException
public void testGetAllRestrictionsUnexpanded() throws Exception
Exception
public void testGetAllRestrictionsExpandRestrictions() throws Exception
Exception
public void testGetAllRestrictionsExpandRestrictionsUsersGroups() throws Exception
Exception
public void testGetAllRestrictionsSpecific() throws Exception
Exception
public void testUpdateRestrictionsThrowsNullContentId() throws Exception
Exception
public void testUpdateRestrictionsThrowsNullRestrictions() throws Exception
Exception
public void testUpdateRestrictionsThrowsUnknownUser() throws Exception
Exception
public void testUpdateRestrictionsThrowsUnknownGroup() throws Exception
Exception
public void testUpdateRestrictionsThrowsUnknownContent() throws Exception
Exception
public void testUpdateRestrictionsThrowsNotPermittedContent() throws Exception
Exception
public void testUpdateRestrictionsNotAlterableContent() throws Exception
Exception
public void testUpdateRestrictionsWontAllowSkipSelf() throws Exception
Exception
public void testUpdateRestrictionsHappyWhenNotSkippingSelf() throws Exception
Exception
public void testUpdateRestrictionsHappyPathUserRead() throws Exception
Exception
public void testUpdateRestrictionsEmptyUserListMakesReadUnrestricted() throws Exception
Exception
public void testUpdateNewSpecifiedRestrictionsReplaceOldOnes() throws Exception
Exception
public void testAddRestrictionsDoesAddToEmptyPage() throws Exception
Exception
public void testAddRestrictionsDoesNotChangeExisting() throws Exception
Exception
public void testDeleteRestrictionsDoesDeleteRestrictions() throws Exception
Exception
public void testDeleteContentRestrictionForSubjectCannotRemoveSelf() throws Exception
Exception
public void testDeleteContentRestrictionForSubjectCannotRemoveSelfEvenAdmin() throws Exception
Exception
public void testDeleteContentRestrictionForSubjectHappyPath() throws Exception
Exception
public void testDeleteContentRestrictionForSubjectByOneTillHappy() throws Exception
Exception
public void testDeleteContentRestrictionForSubjectWrongRestrictionThrowsNotFound() throws Exception
Exception
public void testAddDirectContentRestrictionForSubjectCannotRestrictFromSelf() throws Exception
Exception
public void testAddDirectContentRestrictionForSubjectCannotRestrictFromSelfEvenAdmin() throws Exception
Exception
public void testAddDirectContentRestrictionForSubjectHappyPath() throws Exception
Exception
public void testAddDirectContentRestrictionForSubjectThrowsWhenCannotView() throws Exception
Exception
Copyright © 2003–2018 Atlassian. All rights reserved.