public class

TestDefaultFragmentTransformer

extends XMLTestCase
java.lang.Object
   ↳ XMLTestCase
     ↳ com.atlassian.confluence.content.render.xhtml.transformers.TestDefaultFragmentTransformer

Summary

Public Constructors
TestDefaultFragmentTransformer()
Public Methods
void testAngleBracketsInCData()
void testCDataIsPreserved()
void testCommentsAreSupported()
void testContentWithEntityValue()
Testing for CONFDEV-490.
void testEmptyImgUnchanged()
Test that an image received from the editor (via HTML to XHTML conversion) will not be changed to an empty tag.
void testEmptyParagraphsConvertToSelfClosing()
Test for CONFDEV-1496.
void testFragmentTransformerThatReturnsInvalidXml()
void testPredefinedEntitiesTransformation()
void testRenderingXhtmlWithBodyThatContainsTextOnlyWithNoTags()
void testRenderingXhtmlWithEmptyBody()
void testStartElementsAreClosedBeforeFragmentTransformationOutputIsAppended()
Avoid <p<span\>>, where the starting P is not closed before the inner span is rendered
void testUnknownEntityTransformation()
void testWithFragmentTransformer()
void testWithNoFragmentTransformers()
Protected Methods
void setUp()
void tearDown()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TestDefaultFragmentTransformer ()

Public Methods

public void testAngleBracketsInCData ()

Throws
Exception

public void testCDataIsPreserved ()

Throws
Exception

public void testCommentsAreSupported ()

Throws
Exception

public void testContentWithEntityValue ()

Testing for CONFDEV-490.

Throws
Exception

public void testEmptyImgUnchanged ()

Test that an image received from the editor (via HTML to XHTML conversion) will not be changed to an empty tag. (Test for CONFDEV-1496.)

Throws
Exception

public void testEmptyParagraphsConvertToSelfClosing ()

Test for CONFDEV-1496.

Throws
Exception

public void testFragmentTransformerThatReturnsInvalidXml ()

Throws
Exception

public void testPredefinedEntitiesTransformation ()

Throws
Exception

public void testRenderingXhtmlWithBodyThatContainsTextOnlyWithNoTags ()

Throws
Exception

public void testRenderingXhtmlWithEmptyBody ()

Throws
Exception

public void testStartElementsAreClosedBeforeFragmentTransformationOutputIsAppended ()

Avoid <p<span\>>, where the starting P is not closed before the inner span is rendered

Throws
Exception

public void testUnknownEntityTransformation ()

Throws
Exception

public void testWithFragmentTransformer ()

Throws
Exception

public void testWithNoFragmentTransformers ()

Throws
Exception

Protected Methods

protected void setUp ()

Throws
Exception

protected void tearDown ()

Throws
Exception