public class

TestDefaultXmlEventReaderFactory

extends TestCase
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ com.atlassian.confluence.content.render.xhtml.TestDefaultXmlEventReaderFactory

Class Overview

Tests to ensure that the readers created by this factory are configured correctly.

Summary

Public Constructors
TestDefaultXmlEventReaderFactory()
Public Methods
void testEditorXmlEventReaderDoesNotReplaceEntities()
void testEditorXmlEventReaderReplacesPredefinedEntities()
This isn't actually a behaviour we want, but it's unavoidable in Woodstox (see CONFDEV-4752) so we are working with it in various places in the application.
void testStorageXmlEventReaderHandlesEntitiesInAttributes()
CONFDEV-187 is about the event reader discarding external entities in attribute values.
Protected Methods
void setUp()
void tearDown()
[Expand]
Inherited Methods
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Public Constructors

public TestDefaultXmlEventReaderFactory ()

Public Methods

public void testEditorXmlEventReaderDoesNotReplaceEntities ()

Throws
Exception

public void testEditorXmlEventReaderReplacesPredefinedEntities ()

This isn't actually a behaviour we want, but it's unavoidable in Woodstox (see CONFDEV-4752) so we are working with it in various places in the application. This test remains to provide early indication if this behaviour some how changes in the future.

Throws
Exception

public void testStorageXmlEventReaderHandlesEntitiesInAttributes ()

CONFDEV-187 is about the event reader discarding external entities in attribute values. This test is to make sure this no longer happens.

Throws
Exception

Protected Methods

protected void setUp ()

Throws
Exception

protected void tearDown ()

Throws
Exception