org.apache.rat.report.xml.writer.impl.base
Class XmlWriterTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.rat.report.xml.writer.impl.base.XmlWriterTest
All Implemented Interfaces:
junit.framework.Test

public class XmlWriterTest
extends junit.framework.TestCase


Constructor Summary
XmlWriterTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testAttributeAfterElementClosed()
           
 void testAttributeAfterLastElement()
           
 void testAttributeContentBeforeFirstElement()
           
 void testAttributeInContent()
           
 void testCallCloseElementAfterLastElementClosed()
           
 void testCallOpenElementAfterLastElementClosed()
           
 void testCloseComplexDocument()
           
 void testCloseDocumentAfterRootElementClosed()
           
 void testCloseDocumentBeforeOpen()
           
 void testCloseElementBeforeFirstElement()
           
 void testCloseElementWithContent()
           
 void testCloseFirstElement()
           
 void testCloseSimpleDocument()
           
 void testContentAfterElement()
           
 void testContentAfterLastElement()
           
 void testContentEscaping()
           
 void testDuplicateAttributes()
           
 void testEscapeAttributeContent()
           
 void testInvalidAttributeName()
           
 void testInvalidElementName()
           
 void testOpenElement()
           
 void testOutOfRangeCharacter()
           
 void testReturnValues()
           
 void testWriteAfterElement()
           
 void testWriteContentBeforeFirstElement()
           
 void testWriteProlog()
           
 void testWritePrologTwo()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlWriterTest

public XmlWriterTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testReturnValues

public void testReturnValues()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testOpenElement

public void testOpenElement()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testInvalidElementName

public void testInvalidElementName()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testCallOpenElementAfterLastElementClosed

public void testCallOpenElementAfterLastElementClosed()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

testCallCloseElementAfterLastElementClosed

public void testCallCloseElementAfterLastElementClosed()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

testCloseFirstElement

public void testCloseFirstElement()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testCloseElementWithContent

public void testCloseElementWithContent()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testCloseElementBeforeFirstElement

public void testCloseElementBeforeFirstElement()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testContentAfterElement

public void testContentAfterElement()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testContentAfterLastElement

public void testContentAfterLastElement()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testWriteContentBeforeFirstElement

public void testWriteContentBeforeFirstElement()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testContentEscaping

public void testContentEscaping()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testAttributeAfterLastElement

public void testAttributeAfterLastElement()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testAttributeContentBeforeFirstElement

public void testAttributeContentBeforeFirstElement()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

testInvalidAttributeName

public void testInvalidAttributeName()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testEscapeAttributeContent

public void testEscapeAttributeContent()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testAttributeInContent

public void testAttributeInContent()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testOutOfRangeCharacter

public void testOutOfRangeCharacter()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testAttributeAfterElementClosed

public void testAttributeAfterElementClosed()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testCloseDocumentBeforeOpen

public void testCloseDocumentBeforeOpen()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testCloseDocumentAfterRootElementClosed

public void testCloseDocumentAfterRootElementClosed()
                                             throws java.lang.Exception
Throws:
java.lang.Exception

testCloseSimpleDocument

public void testCloseSimpleDocument()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testCloseComplexDocument

public void testCloseComplexDocument()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testWriteProlog

public void testWriteProlog()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testWriteAfterElement

public void testWriteAfterElement()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testWritePrologTwo

public void testWritePrologTwo()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testDuplicateAttributes

public void testDuplicateAttributes()
                             throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.