java.lang.Object | |||
↳ | junit.framework.Assert | ||
↳ | junit.framework.TestCase | ||
↳ | com.atlassian.confluence.content.render.xhtml.view.TestViewHeadingFragmentTransformer |
Test the transformation from storage to view of heading elements which have an anchor embedded.
The acceptance test testMacroInHeader (in MacrosAcceptanceTest) also tests headers that contain macros.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Tests transformation of header if the alignment style is defined.
| |||||||||||
Tests headings that contain links without a body (they use the default value).
| |||||||||||
Tests headings that contain bodyless macros.
| |||||||||||
Tests headings that contain links with a body.
| |||||||||||
Tests headings that contain bodied macros.
| |||||||||||
Tests truncation of anchors where we have had to fall back on using Text from the output rather than text from
the storage.
| |||||||||||
Test a header with no text which should be discarded.
| |||||||||||
Tests headings using HTML and XML entities
| |||||||||||
Test it only handles h1..h6
| |||||||||||
Test the use of a null context (used in some more complex tests).
| |||||||||||
Test the use of a sub type of RenderContext that is not a page or space context.
| |||||||||||
Test the addition of an anchor prefix for a page context.
| |||||||||||
Test the use of a
DefaultConversionContext without a RenderContext (used in some more complex tests). | |||||||||||
Test the addition of an anchor prefix for a space context no longer takes place (since 4.0).
| |||||||||||
Test basic transformation of each header.
| |||||||||||
Tests multiple headers in a row.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
junit.framework.TestCase
| |||||||||||
From class
junit.framework.Assert
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
junit.framework.Test
|
Tests transformation of header if the alignment style is defined.
Exception | if unexpected problem |
---|
Tests headings that contain links without a body (they use the default value). There is no storage format text so we fall back to using text from the output.
Exception | if unexpected problem |
---|
Tests headings that contain bodyless macros. There is no storage format text so we fall back to using text from the output.
Exception | if unexpected problem |
---|
Tests headings that contain links with a body. The text in the storage format (the text of the link's body) should become the basis for the anchor.
Exception | if unexpected problem |
---|
Tests headings that contain bodied macros. The text in the storage format (the text of the macros's body) should become the basis for the anchor.
Exception | if unexpected problem |
---|
Tests truncation of anchors where we have had to fall back on using Text from the output rather than text from the storage. Normally bodyless macros and links.
Exception | if unexpected problem |
---|
Test a header with no text which should be discarded.
Exception | if unexpected problem |
---|
Tests headings using HTML and XML entities
Exception | if unexpected problem |
---|
Test the use of a null context (used in some more complex tests). The anchor is given no prefix.
Exception | if unexpected problem |
---|
Test the use of a sub type of RenderContext that is not a page or space context. One might get added in the future.
Exception | if unexpected problem |
---|
Test the addition of an anchor prefix for a page context.
Exception | if unexpected problem |
---|
Test the use of a DefaultConversionContext
without a RenderContext (used in some more complex tests).
The anchor is given no prefix.
Exception | if unexpected problem |
---|
Test the addition of an anchor prefix for a space context no longer takes place (since 4.0).
Exception | if unexpected problem |
---|
Test basic transformation of each header.
Exception | if unexpected problem |
---|
Tests multiple headers in a row.
Exception | if unexpected problem |
---|