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
Exception
public void testGetMacroPreviewHandlesUnprocessedMacroBody() throws Exception
Exception
public 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
...
Exception
Copyright © 2003–2018 Atlassian. All rights reserved.