nu.xom.tests
Class SerializerTest

java.lang.Object
  extended by TestCase
      extended by nu.xom.tests.XOMTestCase
          extended by nu.xom.tests.SerializerTest

public class SerializerTest
extends XOMTestCase

Tests for Serializer functionality.

Version:
1.1b7
Author:
Elliotte Rusty Harold

Constructor Summary
SerializerTest(java.lang.String name)
           
 
Method Summary
protected  void setUp()
           
 void testAmpersandAndAngleBracketsInAttributeValue()
           
 void testAmpersandAndLessThanInText()
           
 void testAttributes()
           
 void testBasicElementWithText()
           
 void testCarriageReturnInAttributeValueWithDefaultOptions()
           
 void testCarriageReturnInTextWithDefaultOptions()
           
 void testCDATASectionEndDelimiter()
           
 void testChangeLineSeparator()
           
 void testChildElements()
           
 void testComment()
           
 void testConflictBetweenMaxLengthAndIndent()
           
 void testCRInTextValueWithLineSeparator()
           
 void testCRInTextWithIndenting()
           
 void testCRInTextWithMaxLength()
           
 void testCRLFInAttributeValue()
           
 void testCRLFInAttributeValueWithIndenting()
           
 void testCRLFInAttributeValueWithLineSeparatorCR()
           
 void testCRLFInAttributeValueWithLineSeparatorLF()
           
 void testCRLFInAttributeValueWithMaxLength()
           
 void testCRLFInTextValueWithLineSeparator()
           
 void testDefaultNamespace()
           
 void testDontBreakLineInElementWithSimpleContent()
           
 void testDontChangeLineSeparator()
           
 void testDontDoubleBreak()
           
 void testDontSerializeNoNamespace()
           
 void testDontSerializeXMLNamespace()
           
 void testElementsThatOnlyContainASingleLinefeedShouldNotBeSplitWhileIndenting()
           
 void testElementsThatOnlyContainASingleSpaceShouldNotBeSplitWhileIndenting()
           
 void testElementsThatOnlyContainEmptyTextNodesShouldBeOutputWithAnEmptyElementTag()
           
 void testElementsThatOnlyContainsAnEmptyTextNodeShouldBeOutputWithAnEmptyElementTag()
           
 void testElementsThatOnlyContainTextNodesWithBoundaryWhiteSpaceShouldNotBeSplitWhileIndenting()
           
 void testElementWithText()
           
 void testElementWithTextAndCarriageReturns()
           
 void testEmptyElement()
           
 void testEndTagsOfElementsWithContentGoOnSeparateLine()
           
 void testEscapeAttributeValue()
           
 void testEWithCombiningMacron()
           
 void testEWithCombiningMacronAndGrave()
           
 void testGetEncoding()
           
 void testGetPreserveBaseURI()
           
 void testIndentAndBreakBeforeComment()
           
 void testIndentAndBreakBeforeProcessingInstruction()
           
 void testKannadaVowelSignOO()
           
 void testLFInAttributeValueWithLineSeparatorCRLF()
           
 void testLineBreaksInInternalDTDSubset()
           
 void testLineFeedInAttributeValueWithDefaultOptions()
           
 void testLineLength()
           
 void testLineLengthWithSetOutputStream()
           
 void testLowerLimitOfUnicodeInCharacterData()
           
 void testMultipleCombiningCharactersWithDifferentCombiningClassesNFC()
           
 void testMultipleCombiningCharactersWithNFC()
           
 void testNFC88592()
           
 void testNFCFollowingEntityReference()
           
 void testNFCInAttribute()
           
 void testNFCInComment()
           
 void testNFCInConsecutiveTextNodes()
           
 void testNFCInElementContent()
           
 void testNFCInElementContentWithNonUnicodeEncoding()
           
 void testNFCInElementName()
           
 void testNFCInProcessingInstruction()
           
 void testNFCWithKoreanCharacter()
           
 void testNFCWithSetOutputStream()
           
 void testNoNFCByDefault()
           
 void testNonParenthesizedOjeon()
           
 void testNotEscapeLinefeedInTextContent()
           
 void testNullDocument()
           
 void testNullEncoding()
           
 void testNullOutputStream()
           
 void testNullOutputStreamWithEncoding()
           
 void testOjeon()
           
 void testOnlyXMLSpaceCountsAsBoundaryWhiteSpace()
           
 void testParenthesizedOjeon()
           
 void testPreserveBaseURI()
           
 void testPreserveBaseURIDoesntOverrideXMLBase()
           
 void testPreserveBaseURIWithChildren()
           
 void testPrettyXML()
           
 void testPrettyXMLWithSetOutputStream()
           
 void testProcessingInstruction()
           
 void testPrologAndEpilog()
           
 void testPunctuationInAttributeValueNonUnicode()
           
 void testReallyBigIndent()
           
 void testSerializeDocTypeWithInternalDTDSubset()
           
 void testSerializeDocTypeWithPublicAndSystemID()
           
 void testSerializeDocTypeWithSystemID()
           
 void testSerializeInternalDTDSubsetContainingUnavailableCharacter()
           
 void testSerializePlane1CharacterInAttributeValue()
           
 void testSerializePlane1CharacterInCharacterData()
           
 void testSerializeQuoteInAttributeValue()
           
 void testSerializeUnavailableCharacterInMarkup()
           
 void testSerializeXMLNamespaceDeclaration()
           
 void testSetIndent()
           
 void testSetLineSeparator()
           
 void testSetMaxLength()
           
 void testSetNFC()
           
 void testSettingOutputStreamDoesNotSetLineSeparator()
           
 void testSettingOutputStreamDoesNotUnnecessarilyEscapeLineBreaks()
           
 void testStaticElementWithText()
           
 void testSurrogatePairCountsAsOneCharacterForColumnCount()
           
 void testTabInAttributeValueWithDefaultOptions()
           
 void testTabInAttributeValueWithIndenting()
           Test that tabs in attribute values are not escaped when indenting.
 void testTabInAttributeValueWithLineSeparator()
           Test that tabs in attribute values are escaped even when a line separator is set.
 void testTabInAttributeValueWithMaxLength()
           
 void testTabInAttributeValueWithZeroMaxLength()
           Test that tabs in attribute values are escaped when max length is set to 0
 void testTurnLineFeedInAttributeValueIntoSpaceWhenIndenting()
           
 void testUnicodeNFCTestSuite()
           
 void testUpperLimitOfUnicodeInCharacterData()
           
 void testUTF16BEBOM()
           Check that the UTF-16BE encoding omits the byte-order mark.
 void testUTF16BOM()
           Check that the UTF-16 encoding outputs a byte-order mark.
 void testUTF16LEBOM()
           Check that the UTF-16LE encoding omits the byte-order mark.
 void testWhiteSpaceAfterCommentsIsBoundaryWhiteSpace()
           
 void testWhiteSpaceBeforeCommentIsBoundaryWhiteSpace()
           
 void testWhiteSpaceBetweenCommentsIsBoundaryWhiteSpace()
           
 void testWriteAttributeValue()
           
 void testWriteChild()
           
 void testWriteEscaped()
           
 void testWriteParentlessElementInANamespace()
           
 void testWriteParentlessTextNode()
           
 void testWriteParentlessTextNodeWhileIndenting()
           
 void testWriteRaw()
           
 void testWriteWhiteSpaceOnlyTextNodeWhileIndenting()
           
 void testXMLSpaceDefault()
           
 void testXMLSpaceDefaultWithIndenting()
           
 void testXMLSpaceDefaultWithIndentingAndGrandchildren()
           
 void testXMLSpacePreserve()
           
 void testXMLSpacePreserveWithIndenting()
           
 void testXMLSpaceUnspecifiedValueWithIndenting()
           
 
Methods inherited from class nu.xom.tests.XOMTestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializerTest

public SerializerTest(java.lang.String name)
Method Detail

setUp

protected void setUp()

testNFC88592

public void testNFC88592()
                  throws java.io.IOException,
                         nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testMultipleCombiningCharactersWithNFC

public void testMultipleCombiningCharactersWithNFC()
                                            throws nu.xom.ParsingException,
                                                   java.io.IOException
Throws:
nu.xom.ParsingException
java.io.IOException

testMultipleCombiningCharactersWithDifferentCombiningClassesNFC

public void testMultipleCombiningCharactersWithDifferentCombiningClassesNFC()
                                                                     throws nu.xom.ParsingException,
                                                                            java.io.IOException
Throws:
nu.xom.ParsingException
java.io.IOException

testEWithCombiningMacron

public void testEWithCombiningMacron()
                              throws nu.xom.ParsingException,
                                     java.io.IOException
Throws:
nu.xom.ParsingException
java.io.IOException

testEWithCombiningMacronAndGrave

public void testEWithCombiningMacronAndGrave()
                                      throws nu.xom.ParsingException,
                                             java.io.IOException
Throws:
nu.xom.ParsingException
java.io.IOException

testParenthesizedOjeon

public void testParenthesizedOjeon()
                            throws nu.xom.ParsingException,
                                   java.io.IOException
Throws:
nu.xom.ParsingException
java.io.IOException

testNonParenthesizedOjeon

public void testNonParenthesizedOjeon()
                               throws nu.xom.ParsingException,
                                      java.io.IOException
Throws:
nu.xom.ParsingException
java.io.IOException

testOjeon

public void testOjeon()
               throws nu.xom.ParsingException,
                      java.io.IOException
Throws:
nu.xom.ParsingException
java.io.IOException

testKannadaVowelSignOO

public void testKannadaVowelSignOO()
                            throws nu.xom.ParsingException,
                                   java.io.IOException
Throws:
nu.xom.ParsingException
java.io.IOException

testCDATASectionEndDelimiter

public void testCDATASectionEndDelimiter()
                                  throws java.io.IOException
Throws:
java.io.IOException

testXMLSpacePreserve

public void testXMLSpacePreserve()
                          throws java.io.IOException
Throws:
java.io.IOException

testUTF16LEBOM

public void testUTF16LEBOM()
                    throws java.io.IOException

Check that the UTF-16LE encoding omits the byte-order mark.

Throws:
java.io.IOException

testUTF16BOM

public void testUTF16BOM()
                  throws java.io.IOException

Check that the UTF-16 encoding outputs a byte-order mark.

Throws:
java.io.IOException

testUTF16BEBOM

public void testUTF16BEBOM()
                    throws java.io.IOException

Check that the UTF-16BE encoding omits the byte-order mark.

Throws:
java.io.IOException

testXMLSpaceDefault

public void testXMLSpaceDefault()
                         throws java.io.IOException
Throws:
java.io.IOException

testXMLSpacePreserveWithIndenting

public void testXMLSpacePreserveWithIndenting()
                                       throws java.io.IOException
Throws:
java.io.IOException

testXMLSpaceUnspecifiedValueWithIndenting

public void testXMLSpaceUnspecifiedValueWithIndenting()
                                               throws java.io.IOException
Throws:
java.io.IOException

testXMLSpaceDefaultWithIndenting

public void testXMLSpaceDefaultWithIndenting()
                                      throws java.io.IOException
Throws:
java.io.IOException

testXMLSpaceDefaultWithIndentingAndGrandchildren

public void testXMLSpaceDefaultWithIndentingAndGrandchildren()
                                                      throws java.io.IOException
Throws:
java.io.IOException

testDontSerializeXMLNamespace

public void testDontSerializeXMLNamespace()
                                   throws java.io.IOException
Throws:
java.io.IOException

testDontSerializeNoNamespace

public void testDontSerializeNoNamespace()
                                  throws java.io.IOException
Throws:
java.io.IOException

testDefaultNamespace

public void testDefaultNamespace()
                          throws java.io.IOException
Throws:
java.io.IOException

testEmptyElement

public void testEmptyElement()
                      throws java.io.IOException
Throws:
java.io.IOException

testElementWithText

public void testElementWithText()
                         throws java.io.IOException
Throws:
java.io.IOException

testStaticElementWithText

public void testStaticElementWithText()
                               throws java.io.IOException
Throws:
java.io.IOException

testElementWithTextAndCarriageReturns

public void testElementWithTextAndCarriageReturns()
                                           throws java.io.IOException
Throws:
java.io.IOException

testComment

public void testComment()
                 throws java.io.IOException,
                        nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testProcessingInstruction

public void testProcessingInstruction()
                               throws java.io.IOException,
                                      nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testBasicElementWithText

public void testBasicElementWithText()
                              throws java.io.IOException,
                                     nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testAttributes

public void testAttributes()
                    throws java.io.IOException,
                           nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testChildElements

public void testChildElements()
                       throws java.io.IOException,
                              nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testPrologAndEpilog

public void testPrologAndEpilog()
                         throws java.io.IOException,
                                nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testChangeLineSeparator

public void testChangeLineSeparator()
                             throws java.io.IOException
Throws:
java.io.IOException

testSettingOutputStreamDoesNotSetLineSeparator

public void testSettingOutputStreamDoesNotSetLineSeparator()
                                                    throws java.io.IOException
Throws:
java.io.IOException

testSettingOutputStreamDoesNotUnnecessarilyEscapeLineBreaks

public void testSettingOutputStreamDoesNotUnnecessarilyEscapeLineBreaks()
                                                                 throws java.io.IOException
Throws:
java.io.IOException

testDontChangeLineSeparator

public void testDontChangeLineSeparator()
                                 throws java.io.IOException
Throws:
java.io.IOException

testPreserveBaseURI

public void testPreserveBaseURI()
                         throws java.io.IOException
Throws:
java.io.IOException

testPreserveBaseURIWithChildren

public void testPreserveBaseURIWithChildren()
                                     throws java.io.IOException
Throws:
java.io.IOException

testPreserveBaseURIDoesntOverrideXMLBase

public void testPreserveBaseURIDoesntOverrideXMLBase()
                                              throws java.io.IOException
Throws:
java.io.IOException

testSetLineSeparator

public void testSetLineSeparator()

testLowerLimitOfUnicodeInCharacterData

public void testLowerLimitOfUnicodeInCharacterData()
                                            throws java.io.IOException
Throws:
java.io.IOException

testUpperLimitOfUnicodeInCharacterData

public void testUpperLimitOfUnicodeInCharacterData()
                                            throws java.io.IOException
Throws:
java.io.IOException

testSerializePlane1CharacterInAttributeValue

public void testSerializePlane1CharacterInAttributeValue()
                                                  throws java.io.IOException
Throws:
java.io.IOException

testSerializePlane1CharacterInCharacterData

public void testSerializePlane1CharacterInCharacterData()
                                                 throws java.io.IOException
Throws:
java.io.IOException

testSurrogatePairCountsAsOneCharacterForColumnCount

public void testSurrogatePairCountsAsOneCharacterForColumnCount()
                                                         throws java.io.IOException
Throws:
java.io.IOException

testEscapeAttributeValue

public void testEscapeAttributeValue()
                              throws java.io.IOException
Throws:
java.io.IOException

testLineFeedInAttributeValueWithDefaultOptions

public void testLineFeedInAttributeValueWithDefaultOptions()
                                                    throws java.io.IOException,
                                                           nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testCarriageReturnInAttributeValueWithDefaultOptions

public void testCarriageReturnInAttributeValueWithDefaultOptions()
                                                          throws java.io.IOException,
                                                                 nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testCarriageReturnInTextWithDefaultOptions

public void testCarriageReturnInTextWithDefaultOptions()
                                                throws java.io.IOException,
                                                       nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testTabInAttributeValueWithDefaultOptions

public void testTabInAttributeValueWithDefaultOptions()
                                               throws java.io.IOException,
                                                      nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testTabInAttributeValueWithLineSeparator

public void testTabInAttributeValueWithLineSeparator()
                                              throws java.io.IOException,
                                                     nu.xom.ParsingException

Test that tabs in attribute values are escaped even when a line separator is set.

Throws:
java.io.IOException
nu.xom.ParsingException

testTabInAttributeValueWithIndenting

public void testTabInAttributeValueWithIndenting()
                                          throws java.io.IOException,
                                                 nu.xom.ParsingException

Test that tabs in attribute values are not escaped when indenting.

Throws:
java.io.IOException
nu.xom.ParsingException

testCRLFInAttributeValueWithLineSeparatorCR

public void testCRLFInAttributeValueWithLineSeparatorCR()
                                                 throws java.io.IOException,
                                                        nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testCRLFInAttributeValueWithLineSeparatorLF

public void testCRLFInAttributeValueWithLineSeparatorLF()
                                                 throws java.io.IOException,
                                                        nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testLFInAttributeValueWithLineSeparatorCRLF

public void testLFInAttributeValueWithLineSeparatorCRLF()
                                                 throws java.io.IOException,
                                                        nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testNotEscapeLinefeedInTextContent

public void testNotEscapeLinefeedInTextContent()
                                        throws java.io.IOException
Throws:
java.io.IOException

testCRLFInAttributeValue

public void testCRLFInAttributeValue()
                              throws java.io.IOException,
                                     nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testPunctuationInAttributeValueNonUnicode

public void testPunctuationInAttributeValueNonUnicode()
                                               throws java.io.IOException,
                                                      nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testCRLFInAttributeValueWithIndenting

public void testCRLFInAttributeValueWithIndenting()
                                           throws java.io.IOException,
                                                  nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testCRLFInAttributeValueWithMaxLength

public void testCRLFInAttributeValueWithMaxLength()
                                           throws java.io.IOException,
                                                  nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testCRInTextValueWithLineSeparator

public void testCRInTextValueWithLineSeparator()
                                        throws java.io.IOException,
                                               nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testCRLFInTextValueWithLineSeparator

public void testCRLFInTextValueWithLineSeparator()
                                          throws java.io.IOException,
                                                 nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testCRInTextWithIndenting

public void testCRInTextWithIndenting()
                               throws java.io.IOException,
                                      nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testCRInTextWithMaxLength

public void testCRInTextWithMaxLength()
                               throws java.io.IOException,
                                      nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testTabInAttributeValueWithMaxLength

public void testTabInAttributeValueWithMaxLength()
                                          throws java.io.IOException,
                                                 nu.xom.ParsingException
Throws:
java.io.IOException
nu.xom.ParsingException

testTabInAttributeValueWithZeroMaxLength

public void testTabInAttributeValueWithZeroMaxLength()
                                              throws java.io.IOException,
                                                     nu.xom.ParsingException

Test that tabs in attribute values are escaped when max length is set to 0

Throws:
java.io.IOException
nu.xom.ParsingException

testSetMaxLength

public void testSetMaxLength()

testSetIndent

public void testSetIndent()

testReallyBigIndent

public void testReallyBigIndent()
                         throws nu.xom.ValidityException,
                                nu.xom.ParsingException,
                                java.io.IOException
Throws:
nu.xom.ValidityException
nu.xom.ParsingException
java.io.IOException

testLineLength

public void testLineLength()
                    throws java.io.IOException
Throws:
java.io.IOException

testLineLengthWithSetOutputStream

public void testLineLengthWithSetOutputStream()
                                       throws java.io.IOException
Throws:
java.io.IOException

testPrettyXML

public void testPrettyXML()
                   throws java.io.IOException
Throws:
java.io.IOException

testIndentAndBreakBeforeComment

public void testIndentAndBreakBeforeComment()
                                     throws java.io.IOException
Throws:
java.io.IOException

testOnlyXMLSpaceCountsAsBoundaryWhiteSpace

public void testOnlyXMLSpaceCountsAsBoundaryWhiteSpace()
                                                throws java.io.IOException
Throws:
java.io.IOException

testWhiteSpaceBetweenCommentsIsBoundaryWhiteSpace

public void testWhiteSpaceBetweenCommentsIsBoundaryWhiteSpace()
                                                       throws java.io.IOException
Throws:
java.io.IOException

testWhiteSpaceBeforeCommentIsBoundaryWhiteSpace

public void testWhiteSpaceBeforeCommentIsBoundaryWhiteSpace()
                                                     throws java.io.IOException
Throws:
java.io.IOException

testWhiteSpaceAfterCommentsIsBoundaryWhiteSpace

public void testWhiteSpaceAfterCommentsIsBoundaryWhiteSpace()
                                                     throws java.io.IOException
Throws:
java.io.IOException

testIndentAndBreakBeforeProcessingInstruction

public void testIndentAndBreakBeforeProcessingInstruction()
                                                   throws java.io.IOException
Throws:
java.io.IOException

testDontBreakLineInElementWithSimpleContent

public void testDontBreakLineInElementWithSimpleContent()
                                                 throws java.io.IOException
Throws:
java.io.IOException

testPrettyXMLWithSetOutputStream

public void testPrettyXMLWithSetOutputStream()
                                      throws java.io.IOException
Throws:
java.io.IOException

testAmpersandAndLessThanInText

public void testAmpersandAndLessThanInText()
                                    throws java.io.IOException
Throws:
java.io.IOException

testAmpersandAndAngleBracketsInAttributeValue

public void testAmpersandAndAngleBracketsInAttributeValue()
                                                   throws java.io.IOException
Throws:
java.io.IOException

testSetNFC

public void testSetNFC()

testNFCInElementContent

public void testNFCInElementContent()
                             throws java.io.IOException
Throws:
java.io.IOException

testNFCInConsecutiveTextNodes

public void testNFCInConsecutiveTextNodes()
                                   throws java.io.IOException
Throws:
java.io.IOException

testNoNFCByDefault

public void testNoNFCByDefault()
                        throws java.io.IOException
Throws:
java.io.IOException

testUnicodeNFCTestSuite

public void testUnicodeNFCTestSuite()
                             throws nu.xom.ParsingException,
                                    java.io.IOException
Throws:
nu.xom.ParsingException
java.io.IOException

testNFCInAttribute

public void testNFCInAttribute()
                        throws java.io.IOException
Throws:
java.io.IOException

testNFCInElementName

public void testNFCInElementName()
                          throws java.io.IOException
Throws:
java.io.IOException

testNFCInComment

public void testNFCInComment()
                      throws java.io.IOException
Throws:
java.io.IOException

testNFCInProcessingInstruction

public void testNFCInProcessingInstruction()
                                    throws java.io.IOException
Throws:
java.io.IOException

testNFCInElementContentWithNonUnicodeEncoding

public void testNFCInElementContentWithNonUnicodeEncoding()
                                                   throws java.io.IOException
Throws:
java.io.IOException

testNFCFollowingEntityReference

public void testNFCFollowingEntityReference()
                                     throws java.io.IOException
Throws:
java.io.IOException

testNFCWithSetOutputStream

public void testNFCWithSetOutputStream()
                                throws java.io.IOException
Throws:
java.io.IOException

testNFCWithKoreanCharacter

public void testNFCWithKoreanCharacter()
                                throws java.io.IOException
Throws:
java.io.IOException

testNullOutputStream

public void testNullOutputStream()

testNullOutputStreamWithEncoding

public void testNullOutputStreamWithEncoding()
                                      throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

testNullEncoding

public void testNullEncoding()
                      throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

testNullDocument

public void testNullDocument()
                      throws java.io.IOException
Throws:
java.io.IOException

testGetEncoding

public void testGetEncoding()
                     throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

testGetPreserveBaseURI

public void testGetPreserveBaseURI()
                            throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

testSerializeDocTypeWithSystemID

public void testSerializeDocTypeWithSystemID()
                                      throws java.io.IOException
Throws:
java.io.IOException

testSerializeDocTypeWithPublicAndSystemID

public void testSerializeDocTypeWithPublicAndSystemID()
                                               throws java.io.IOException
Throws:
java.io.IOException

testSerializeXMLNamespaceDeclaration

public void testSerializeXMLNamespaceDeclaration()
                                          throws nu.xom.ParsingException,
                                                 java.io.IOException
Throws:
nu.xom.ParsingException
java.io.IOException

testSerializeDocTypeWithInternalDTDSubset

public void testSerializeDocTypeWithInternalDTDSubset()
                                               throws nu.xom.ParsingException,
                                                      java.io.IOException
Throws:
nu.xom.ParsingException
java.io.IOException

testSerializeInternalDTDSubsetContainingUnavailableCharacter

public void testSerializeInternalDTDSubsetContainingUnavailableCharacter()
                                                                  throws nu.xom.ParsingException,
                                                                         java.io.IOException
Throws:
nu.xom.ParsingException
java.io.IOException

testLineBreaksInInternalDTDSubset

public void testLineBreaksInInternalDTDSubset()
                                       throws nu.xom.ParsingException,
                                              java.io.IOException
Throws:
nu.xom.ParsingException
java.io.IOException

testSerializeQuoteInAttributeValue

public void testSerializeQuoteInAttributeValue()
                                        throws java.io.IOException
Throws:
java.io.IOException

testSerializeUnavailableCharacterInMarkup

public void testSerializeUnavailableCharacterInMarkup()
                                               throws java.io.IOException
Throws:
java.io.IOException

testTurnLineFeedInAttributeValueIntoSpaceWhenIndenting

public void testTurnLineFeedInAttributeValueIntoSpaceWhenIndenting()
                                                            throws java.io.IOException
Throws:
java.io.IOException

testConflictBetweenMaxLengthAndIndent

public void testConflictBetweenMaxLengthAndIndent()
                                           throws java.io.IOException
Throws:
java.io.IOException

testWriteChild

public void testWriteChild()
                    throws java.io.IOException
Throws:
java.io.IOException

testWriteParentlessTextNode

public void testWriteParentlessTextNode()
                                 throws java.io.IOException
Throws:
java.io.IOException

testWriteParentlessTextNodeWhileIndenting

public void testWriteParentlessTextNodeWhileIndenting()
                                               throws java.io.IOException
Throws:
java.io.IOException

testWriteWhiteSpaceOnlyTextNodeWhileIndenting

public void testWriteWhiteSpaceOnlyTextNodeWhileIndenting()
                                                   throws java.io.IOException
Throws:
java.io.IOException

testWriteRaw

public void testWriteRaw()
                  throws java.io.IOException
Throws:
java.io.IOException

testWriteParentlessElementInANamespace

public void testWriteParentlessElementInANamespace()
                                            throws java.io.IOException
Throws:
java.io.IOException

testWriteEscaped

public void testWriteEscaped()
                      throws java.io.IOException
Throws:
java.io.IOException

testWriteAttributeValue

public void testWriteAttributeValue()
                             throws java.io.IOException
Throws:
java.io.IOException

testElementsThatOnlyContainsAnEmptyTextNodeShouldBeOutputWithAnEmptyElementTag

public void testElementsThatOnlyContainsAnEmptyTextNodeShouldBeOutputWithAnEmptyElementTag()
                                                                                    throws java.io.IOException
Throws:
java.io.IOException

testElementsThatOnlyContainEmptyTextNodesShouldBeOutputWithAnEmptyElementTag

public void testElementsThatOnlyContainEmptyTextNodesShouldBeOutputWithAnEmptyElementTag()
                                                                                  throws java.io.IOException
Throws:
java.io.IOException

testElementsThatOnlyContainASingleSpaceShouldNotBeSplitWhileIndenting

public void testElementsThatOnlyContainASingleSpaceShouldNotBeSplitWhileIndenting()
                                                                           throws java.io.IOException
Throws:
java.io.IOException

testElementsThatOnlyContainTextNodesWithBoundaryWhiteSpaceShouldNotBeSplitWhileIndenting

public void testElementsThatOnlyContainTextNodesWithBoundaryWhiteSpaceShouldNotBeSplitWhileIndenting()
                                                                                              throws java.io.IOException
Throws:
java.io.IOException

testElementsThatOnlyContainASingleLinefeedShouldNotBeSplitWhileIndenting

public void testElementsThatOnlyContainASingleLinefeedShouldNotBeSplitWhileIndenting()
                                                                              throws java.io.IOException
Throws:
java.io.IOException

testEndTagsOfElementsWithContentGoOnSeparateLine

public void testEndTagsOfElementsWithContentGoOnSeparateLine()
                                                      throws nu.xom.ParsingException,
                                                             java.io.IOException
Throws:
nu.xom.ParsingException
java.io.IOException

testDontDoubleBreak

public void testDontDoubleBreak()
                         throws nu.xom.ParsingException,
                                java.io.IOException
Throws:
nu.xom.ParsingException
java.io.IOException


Copyright 2002-2005 Elliotte Rusty Harold
elharo@metalab.unc.edu