com.atlassian.confluence.api
Class RemoteContentPropertyServiceAcceptanceTest

java.lang.Object
  extended by com.atlassian.confluence.api.AbstractAcceptanceTest
      extended by com.atlassian.confluence.api.AbstractRemoteServiceAcceptanceTest
          extended by com.atlassian.confluence.api.RemoteContentPropertyServiceAcceptanceTest

public class RemoteContentPropertyServiceAcceptanceTest
extends AbstractRemoteServiceAcceptanceTest

Tests the JsonContentProperty REST API via the RemoteContentPropertyService.

Since:
5.6

Field Summary
 org.junit.rules.ExpectedException exception
           
 
Fields inherited from class com.atlassian.confluence.api.AbstractRemoteServiceAcceptanceTest
proxyCreator
 
Fields inherited from class com.atlassian.confluence.api.AbstractAcceptanceTest
rpc, testHelper, testName
 
Constructor Summary
RemoteContentPropertyServiceAcceptanceTest()
           
 
Method Summary
protected  java.lang.Object getService()
           
protected  java.lang.Class getServiceClass()
           
 void setUp()
           
 void testCannotCreatePropertyOnRestrictedPage()
           
 void testCannotDeletePropertyOnRestrictedPage()
           
 void testCannotFindPropertyOnRestrictedPage()
           
 void testCannotUpdatePropertyOnRestrictedPage()
           
 void testCreateDuplicateViaUpdate()
           
 void testCreateViaUpdate()
           
 void testCreateWithLargeValueSucceeds()
           
 void testCreateWithTooLargeRequestRejected()
           
 void testCreateWithTooLargeValueRejected()
           
 void testSearchByContentId()
           
 void testSimpleCreateRead()
           
 void testTrashPageAlsoTrashesContentProperties()
           
 void testUpdateWithMissingVersion()
           
 void testUpdateWithOldVersion()
           
 
Methods inherited from class com.atlassian.confluence.api.AbstractRemoteServiceAcceptanceTest
getExcludedMethodNamesForProxyTest, proxySetUp, testServiceProxy
 
Methods inherited from class com.atlassian.confluence.api.AbstractAcceptanceTest
commonSetUp, exceptionSupplier, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exception

public org.junit.rules.ExpectedException exception
Constructor Detail

RemoteContentPropertyServiceAcceptanceTest

public RemoteContentPropertyServiceAcceptanceTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

getService

protected java.lang.Object getService()
Specified by:
getService in class AbstractRemoteServiceAcceptanceTest
Returns:
the proxy of the API Service under test.

getServiceClass

protected java.lang.Class getServiceClass()
Specified by:
getServiceClass in class AbstractRemoteServiceAcceptanceTest
Returns:
the class of the API Service under test.

testSimpleCreateRead

public void testSimpleCreateRead()
                          throws ServiceException,
                                 java.io.IOException
Throws:
ServiceException
java.io.IOException

testSearchByContentId

public void testSearchByContentId()
                           throws ServiceException,
                                  java.io.IOException
Throws:
ServiceException
java.io.IOException

testCreateWithLargeValueSucceeds

public void testCreateWithLargeValueSucceeds()
                                      throws java.io.IOException,
                                             ServiceException
Throws:
java.io.IOException
ServiceException

testCreateWithTooLargeValueRejected

public void testCreateWithTooLargeValueRejected()
                                         throws java.io.IOException,
                                                ServiceException
Throws:
java.io.IOException
ServiceException

testCreateWithTooLargeRequestRejected

public void testCreateWithTooLargeRequestRejected()
                                           throws java.io.IOException,
                                                  ServiceException
Throws:
java.io.IOException
ServiceException

testUpdateWithMissingVersion

public void testUpdateWithMissingVersion()
                                  throws ServiceException,
                                         java.io.IOException
Throws:
ServiceException
java.io.IOException

testUpdateWithOldVersion

public void testUpdateWithOldVersion()
                              throws ServiceException,
                                     java.io.IOException
Throws:
ServiceException
java.io.IOException

testTrashPageAlsoTrashesContentProperties

public void testTrashPageAlsoTrashesContentProperties()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

testCreateViaUpdate

public void testCreateViaUpdate()
                         throws java.io.IOException
Throws:
java.io.IOException

testCreateDuplicateViaUpdate

public void testCreateDuplicateViaUpdate()
                                  throws java.io.IOException
Throws:
java.io.IOException

testCannotCreatePropertyOnRestrictedPage

public void testCannotCreatePropertyOnRestrictedPage()
                                              throws ServiceException,
                                                     java.io.IOException
Throws:
ServiceException
java.io.IOException

testCannotFindPropertyOnRestrictedPage

public void testCannotFindPropertyOnRestrictedPage()
                                            throws ServiceException,
                                                   java.io.IOException
Throws:
ServiceException
java.io.IOException

testCannotUpdatePropertyOnRestrictedPage

public void testCannotUpdatePropertyOnRestrictedPage()
                                              throws ServiceException,
                                                     java.io.IOException
Throws:
ServiceException
java.io.IOException

testCannotDeletePropertyOnRestrictedPage

public void testCannotDeletePropertyOnRestrictedPage()
                                              throws ServiceException,
                                                     java.io.IOException
Throws:
ServiceException
java.io.IOException


Copyright © 2003-2014 Atlassian. All Rights Reserved.