public class RemotePageContentTemplateServiceAcceptanceTest extends AbstractRemoteServiceAcceptanceTest
| Modifier and Type | Field and Description |
|---|---|
org.junit.rules.ExpectedException |
expectedException |
static String |
TEMPLATE_BODY |
static String |
TEST_TEMPLATE_LABEL |
proxyCreatorrpc, testHelper, testName| Constructor and Description |
|---|
RemotePageContentTemplateServiceAcceptanceTest() |
checkPageResponse, initialize, prepareMspacesWithNpages, prepareSpacesAndUsersWithCascadedVisibility, proxySetUp, spaceByNumber, testServiceProxy, userByNumbercommonSetUp, exceptionSupplier, pauseAndFlushIndexQueuepublic static final String TEST_TEMPLATE_LABEL
public static final String TEMPLATE_BODY
public org.junit.rules.ExpectedException expectedException
public RemotePageContentTemplateServiceAcceptanceTest()
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 tearDown()
public void testGetListOfGlobalContentTemplates()
public void testGetListOfSpaceContentTemplates()
public void testGetContentTemplateById()
public void testGetContentTemplateFetchOneWithId()
public void testGetContentTemplateFetchOneWithoutId()
public void testGetContentTemplateFetchOneWithSpace()
public void testCreateContentTemplate()
throws Exception
Exceptionpublic void testCreateSpaceContentTemplate()
throws Exception
Exceptionpublic void testCreateDuplicatedTitleThrowsException()
throws Exception
Exceptionpublic void testEmptyTitleThrowsException()
throws Exception
Exceptionpublic void testTitleTooLongThrowsException()
throws Exception
Exceptionpublic void testUpdateTemplate()
public void testDeleteTemplate()
public void testWhenUserIsNotAdmin_DeleteTemplateFailed()
public void testWhenUserIsNotAdmin_CreateTemplateFailed()
throws Exception
Exceptionpublic void testWhenUserIsNotAdmin_updateTemplateFailed()
public void testWhenUserIsNotEditor_createInstanceFailedPermissionCheck()
public void testCreateDraftFromTemplate()
public void testCreatePageFromTemplate()
public void testCreateInstanceWithUnsupportedId_ThrowException()
Copyright © 2003–2017 Atlassian. All rights reserved.