com.atlassian.confluence.rest
Class RestEditorAcceptanceTest

java.lang.Object
  extended by com.atlassian.confluence.rest.RestEditorAcceptanceTest

public class RestEditorAcceptanceTest
extends Object


Field Summary
 org.junit.rules.TestName testName
           
 
Constructor Summary
RestEditorAcceptanceTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testGetMacroPreviewHandlesProcessedMacroBody()
           $ cat post {"contentId":"0", "macro":{"name":"processed-body", "body":"
 void testGetMacroPreviewHandlesUnprocessedMacroBody()
           
 void testGetMacroPreviewHandlesUnprocessedMacroBodyWithSubMacros()
           
 void testGetMacroPreviewWithoutPageViewPermission()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testName

public org.junit.rules.TestName testName
Constructor Detail

RestEditorAcceptanceTest

public RestEditorAcceptanceTest()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

testGetMacroPreviewWithoutPageViewPermission

public void testGetMacroPreviewWithoutPageViewPermission()
                                                  throws Exception
Throws:
Exception

testGetMacroPreviewHandlesUnprocessedMacroBody

public void testGetMacroPreviewHandlesUnprocessedMacroBody()
                                                    throws Exception
Throws:
Exception

testGetMacroPreviewHandlesProcessedMacroBody

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 ...

Throws:
Exception

testGetMacroPreviewHandlesUnprocessedMacroBodyWithSubMacros

public void testGetMacroPreviewHandlesUnprocessedMacroBodyWithSubMacros()
                                                                 throws Exception
Throws:
Exception


Copyright © 2003–2015 Atlassian. All rights reserved.