public class

UserMacrosAcceptanceTest

extends AbstractConfluenceAcceptanceTest
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ com.atlassian.confluence.ThreadLocalWebTestCase
         ↳ com.atlassian.confluence.AbstractAtlassianWebTestCase
           ↳ com.atlassian.confluence.AbstractConfluenceAcceptanceTest
             ↳ com.atlassian.confluence.UserMacrosAcceptanceTest

Summary

[Expand]
Inherited Constants
From class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
From class com.atlassian.confluence.AbstractAtlassianWebTestCase
[Expand]
Inherited Fields
From class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
From class com.atlassian.confluence.AbstractAtlassianWebTestCase
Public Constructors
UserMacrosAcceptanceTest()
Public Methods
void TODOXHTML_testOutputOptionPresentedForLegacyMacro()
Ensure that a "legacy" macro with a wiki template presents the option to select a different template format.
void TODOXHTML_testWarningAboutWikiTemplateMacrosInList()
Test that the list of user macros will warn about macros that are set to wiki output.
void testAddExistingName()
void testAddExistingSystemMacro()
void testAddInvalidName()
void testAddNoName()
void testAddNoTitle()
void testBody()
void testEscapedBody()
void testMoreOnUserMacrosLink()
Another test to protect against merge problems (CONFDEV-514 and CONFDEV-1413).
void testNoBody()
void testNoOutputOptionForCreateMacro()
Wiki output as a template option should no longer be presented.
void testOutputHtml()
void testRenderedBody()
void testUnescapedBody()
void testUpdate()
void testUpdateExistingSystemMacro()
void testUpdateInvalidName()
void testUpdateNoName()
void testUpdateToExistingName()
void testUserMacroAddedWhileOneHiddenDoesNotRemoveHiddenUserMacro()
CONFDEV-3288.
void testUserMacroBodyChoices()
Another test to protect against merge problems (CONFDEV-514 and CONFDEV-1413).
void testUserMacroFields()
void testUserMacroHiddenIfPluginMacroWithSameNameInstalled()
CONFDEV-3288.
void testUserMacroNoBodyConfiguration()
This test is to protect against merge problems which have occurred previously (CONFDEV-514 and CONFDEV-1413) where a choice of no body is not possible.
void testUserMacroWithNoMetadataAnnotated()
void testUserMacrosAreNotAlwaysBlock()
void testUserMacrosAreNotAlwaysInline()
void testUserMacrosNestedInsideAnUnmigratedWikiMarkupBlockStillRender()
Protected Methods
void setUp()
void tearDown()
Default tearDown method.
[Expand]
Inherited Methods
From class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
From class com.atlassian.confluence.AbstractAtlassianWebTestCase
From class com.atlassian.confluence.ThreadLocalWebTestCase
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Public Constructors

public UserMacrosAcceptanceTest ()

Public Methods

public void TODOXHTML_testOutputOptionPresentedForLegacyMacro ()

Ensure that a "legacy" macro with a wiki template presents the option to select a different template format. This is important to allow an admin to convert such a macro.

Throws
Exception

public void TODOXHTML_testWarningAboutWikiTemplateMacrosInList ()

Test that the list of user macros will warn about macros that are set to wiki output.

Throws
Exception

public void testAddExistingName ()

public void testAddExistingSystemMacro ()

public void testAddInvalidName ()

public void testAddNoName ()

public void testAddNoTitle ()

public void testBody ()

Throws
IOException
XmlRpcException

public void testEscapedBody ()

Throws
IOException
XmlRpcException

public void testMoreOnUserMacrosLink ()

Another test to protect against merge problems (CONFDEV-514 and CONFDEV-1413).

Throws
Exception

public void testNoBody ()

Throws
IOException
XmlRpcException

public void testNoOutputOptionForCreateMacro ()

Wiki output as a template option should no longer be presented.

Throws
Exception

public void testOutputHtml ()

Throws
IOException
XmlRpcException

public void testRenderedBody ()

Throws
IOException
XmlRpcException

public void testUnescapedBody ()

Throws
IOException
XmlRpcException

public void testUpdate ()

public void testUpdateExistingSystemMacro ()

public void testUpdateInvalidName ()

public void testUpdateNoName ()

public void testUpdateToExistingName ()

public void testUserMacroAddedWhileOneHiddenDoesNotRemoveHiddenUserMacro ()

CONFDEV-3288.

Throws
Exception

public void testUserMacroBodyChoices ()

Another test to protect against merge problems (CONFDEV-514 and CONFDEV-1413).

Throws
Exception

public void testUserMacroFields ()

Throws
IOException
XmlRpcException

public void testUserMacroHiddenIfPluginMacroWithSameNameInstalled ()

CONFDEV-3288.

Throws
Exception

public void testUserMacroNoBodyConfiguration ()

This test is to protect against merge problems which have occurred previously (CONFDEV-514 and CONFDEV-1413) where a choice of no body is not possible.

Throws
Exception

public void testUserMacroWithNoMetadataAnnotated ()

public void testUserMacrosAreNotAlwaysBlock ()

Throws
IOException
XmlRpcException

public void testUserMacrosAreNotAlwaysInline ()

Throws
IOException
XmlRpcException

public void testUserMacrosNestedInsideAnUnmigratedWikiMarkupBlockStillRender ()

Throws
IOException
XmlRpcException

Protected Methods

protected void setUp ()

Throws
Exception

protected void tearDown ()

Default tearDown method. Removes any files which were added to the filesToDelete list.

Throws
Exception