public class

TestStorageMacroMarshaller

extends XMLTestCase
java.lang.Object
   ↳ XMLTestCase
     ↳ com.atlassian.confluence.content.render.xhtml.storage.macro.TestStorageMacroMarshaller

Class Overview

Note that a second test has been added to each of the test methods in this class ensuring that the storage format that is marshalled to passes AntiSamy successfully. This overloading of the tests is done to reduce the number of places you may need to change test data should we change the storage format in development.

Summary

Fields
protected XhtmlCleaner xhtmlCleaner
Public Constructors
TestStorageMacroMarshaller()
Public Methods
void testPlainTextMacroBodyWithEmptyString()
void testPlainTextMacroBodyWithNull()
void testRenderMacroWithParameterWithoutValue()
void testRenderMacroWithParametersAndBody()
void testRenderMacroWithPlainTextBody()
void testRichTextMacroBodyWithEmptyString()
void testRichTextMacroBodyWithNull()
Protected Methods
void setUp()
void tearDown()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected XhtmlCleaner xhtmlCleaner

Public Constructors

public TestStorageMacroMarshaller ()

Public Methods

public void testPlainTextMacroBodyWithEmptyString ()

Throws
Exception

public void testPlainTextMacroBodyWithNull ()

Throws
Exception

public void testRenderMacroWithParameterWithoutValue ()

Throws
Exception

public void testRenderMacroWithParametersAndBody ()

Throws
Exception

public void testRenderMacroWithPlainTextBody ()

Throws
Exception

public void testRichTextMacroBodyWithEmptyString ()

Throws
Exception

public void testRichTextMacroBodyWithNull ()

Throws
Exception

Protected Methods

protected void setUp ()

Throws
Exception

protected void tearDown ()

Throws
Exception