public class RestEditorAcceptanceTest extends AbstractAcceptanceTest
rpc, testHelper, testName| Constructor and Description |
|---|
RestEditorAcceptanceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testGetMacroPreviewHandlesProcessedMacroBody()
$ cat post
{"contentId":"0", "macro":{"name":"processed-body", "body":" |
void |
testGetMacroPreviewHandlesUnprocessedMacroBody() |
void |
testGetMacroPreviewHandlesUnprocessedMacroBodyWithSubMacros() |
void |
testGetMacroPreviewWithoutPageViewPermission() |
commonSetUp, directoryConfiguration, exceptionSupplier, pauseAndFlushIndexQueue, userspublic void testGetMacroPreviewWithoutPageViewPermission()
throws Exception
Exceptionpublic void testGetMacroPreviewHandlesUnprocessedMacroBody()
throws Exception
Exceptionpublic void testGetMacroPreviewHandlesProcessedMacroBody()
throws Exception
$ cat post
{"contentId":"0", "macro":{"name":"processed-body", "body":"
blah blah", "params":{}}}
$ curl --header "Content-Type:application/json" --data @post http://localhost:8080/confluence/rest/tinymce/1/macro/preview
...
ExceptionCopyright © 2003–2019 Atlassian. All rights reserved.