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 |
proxyCreator
rpc, testHelper, testName
Constructor and Description |
---|
RemotePageContentTemplateServiceAcceptanceTest() |
checkPageResponse, initialize, prepareMspacesWithNpages, prepareSpacesAndUsersWithCascadedVisibility, proxySetUp, spaceByNumber, testServiceProxy, userByNumber
commonSetUp, directoryConfiguration, exceptionSupplier, pauseAndFlushIndexQueue, users
public 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 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 tearDown()
public void testGetListOfGlobalContentTemplates()
public void testGetListOfSpaceContentTemplates()
public void testGetContentTemplateById()
public void testGetContentTemplateFetchOneWithId()
public void testGetContentTemplateFetchOneWithoutId()
public void testGetContentTemplateFetchOneWithSpace()
public void testCreateContentTemplate() throws Exception
Exception
public void testCreateSpaceContentTemplate() throws Exception
Exception
public void testCreateDuplicatedTitleThrowsException() throws Exception
Exception
public void testEmptyTitleThrowsException() throws Exception
Exception
public void testTitleTooLongThrowsException() throws Exception
Exception
public void testUpdateTemplate()
public void testDeleteTemplate()
public void testWhenUserIsNotAdmin_DeleteTemplateFailed()
public void testWhenUserIsNotAdmin_CreateTemplateFailed() throws Exception
Exception
public void testWhenUserIsNotAdmin_updateTemplateFailed()
public void testWhenUserIsNotEditor_createInstanceFailedPermissionCheck()
public void testCreateDraftFromTemplate()
public void testCreatePageFromTemplate()
public void testCreateInstanceWithUnsupportedId_ThrowException()
Copyright © 2003–2017 Atlassian. All rights reserved.