public class RestEditorAcceptanceTest extends Object
| Modifier and Type | Field and Description |
|---|---|
AcceptanceTestHelper |
testHelper |
| 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() |
public final AcceptanceTestHelper testHelper
public 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–2016 Atlassian. All rights reserved.