public class RemoteContentSharedDraftsServiceAcceptanceTest extends AbstractRemoteServiceAcceptanceTest
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.ExpectedException |
thrown |
proxyCreatorrpc, testHelper, testName| Constructor and Description |
|---|
RemoteContentSharedDraftsServiceAcceptanceTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertDraftRemovedOnPublish(ContentId id) |
protected Collection<String> |
getExcludedMethodNamesForProxyTest()
Returns a collection of method names to skip the proxy test for.
|
protected Object |
getService() |
protected Class |
getServiceClass() |
void |
setUp() |
void |
testAnonymousCannotPublishOthersDrafts() |
void |
testPublishEditDraftWhenUserLostSession() |
void |
testPublishEditDraftWithoutDraft() |
void |
testPublishEditDraftWithoutEditPermission() |
void |
testPublishEditDraftWithPassingContentStatusIsNotCurrent() |
void |
testPublishNewDraft() |
void |
testPublishNewDraftNotFoundDraft() |
void |
testPublishNewDraftWithAttachment() |
void |
testPublishNewDraftWithEmbeddedAttachment() |
void |
testPublishNewDraftWithLabels() |
void |
testPublishNewDraftWithLocation() |
void |
testPublishNewDraftWithoutContentBodyReference() |
checkPageResponse, initialize, prepareMspacesWithNpages, prepareSpacesAndUsersWithCascadedVisibility, proxySetUp, spaceByNumber, testServiceProxy, userByNumbercommonSetUp, exceptionSupplierpublic RemoteContentSharedDraftsServiceAcceptanceTest()
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 testPublishNewDraft()
public void testPublishNewDraftWithAttachment()
throws URISyntaxException
URISyntaxExceptionpublic void testPublishNewDraftWithEmbeddedAttachment()
throws URISyntaxException
URISyntaxExceptionpublic void testPublishNewDraftWithLabels()
public void testPublishNewDraftWithLocation()
public void testPublishNewDraftNotFoundDraft()
public void testPublishNewDraftWithoutContentBodyReference()
public void testPublishEditDraftWhenUserLostSession()
public void testPublishEditDraftWithoutEditPermission()
public void testPublishEditDraftWithoutDraft()
public void testPublishEditDraftWithPassingContentStatusIsNotCurrent()
public void testAnonymousCannotPublishOthersDrafts()
protected void assertDraftRemovedOnPublish(ContentId id)
Copyright © 2003–2016 Atlassian. All rights reserved.