com.atlassian.confluence.api
Class RemoteContentTrashServiceAcceptanceTest
java.lang.Object
com.atlassian.confluence.api.AbstractAcceptanceTest
com.atlassian.confluence.api.AbstractRemoteServiceAcceptanceTest
com.atlassian.confluence.api.RemoteContentTrashServiceAcceptanceTest
public class RemoteContentTrashServiceAcceptanceTest
- extends AbstractRemoteServiceAcceptanceTest
Tests the ContentTrashService REST API via the RemoteContentTrashService.
- Since:
- 5.6
Field Summary |
org.junit.rules.ExpectedException |
thrown
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
thrown
public org.junit.rules.ExpectedException thrown
RemoteContentTrashServiceAcceptanceTest
public RemoteContentTrashServiceAcceptanceTest()
getService
protected Object getService()
- Specified by:
getService
in class AbstractRemoteServiceAcceptanceTest
- Returns:
- the proxy of the API Service under test.
getServiceClass
protected Class getServiceClass()
- Specified by:
getServiceClass
in class AbstractRemoteServiceAcceptanceTest
- Returns:
- the class of the API Service under test.
getExcludedMethodNamesForProxyTest
protected Collection<String> getExcludedMethodNamesForProxyTest()
- Description copied from class:
AbstractRemoteServiceAcceptanceTest
- Returns a collection of method names to skip the proxy test for.
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.
- Overrides:
getExcludedMethodNamesForProxyTest
in class AbstractRemoteServiceAcceptanceTest
setUp
public void setUp()
throws Exception
- Throws:
Exception
testTrashAndGet
public void testTrashAndGet()
throws Exception
- Throws:
Exception
testTrashAlreadyTrashed
public void testTrashAlreadyTrashed()
throws Exception
- Throws:
Exception
testTrashAndPurge
public void testTrashAndPurge()
throws Exception
- Throws:
Exception
testTrashAndRestore
public void testTrashAndRestore()
throws Exception
- Throws:
Exception
testTrashAndRestoreIncorrectVersion
public void testTrashAndRestoreIncorrectVersion()
throws Exception
- Throws:
Exception
testTrashAndRestoreIncorrectStatus
public void testTrashAndRestoreIncorrectStatus()
throws Exception
- Throws:
Exception
testTrashAndRestoreWithLocatedContent
public void testTrashAndRestoreWithLocatedContent()
throws Exception
- Throws:
Exception
testUnpermittedTrash
public void testUnpermittedTrash()
throws com.atlassian.user.EntityException
- Throws:
com.atlassian.user.EntityException
Copyright © 2003–2015 Atlassian. All rights reserved.