org.jdom.test.cases
Class TestDocument

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jdom.test.cases.TestDocument
All Implemented Interfaces:
junit.framework.Test

public final class TestDocument
extends junit.framework.TestCase


Constructor Summary
TestDocument(java.lang.String name)
          Construct a new instance.
 
Method Summary
static void main(java.lang.String[] args)
          The main method runs all the tests in the text ui
 void setUp()
          This method is called before a test is executed.
static junit.framework.Test suite()
          The suite method runs all the tests
 void tearDown()
          This method is called after a test is executed.
 void test_TCC___List_OrgJdomDocType()
          Test constructor of a Document with a List of content and a DocType.
 void test_TCC___List()
          Test constructor of Document with a List of content including the root element.
 void test_TCC___OrgJdomElement_OrgJdomDocType()
          Test constructor of Document with and Element and Doctype
 void test_TCC___OrgJdomElement()
          Test the constructor with only a root element.
 void test_TCM__boolean_equals_Object()
          Test object equality.
 void test_TCM__boolean_removeContent_OrgJdomComment()
          Test removeContent for a given Comment
 void test_TCM__boolean_removeContent_OrgJdomProcessingInstruction()
          Test removeContent with the supplied ProcessingInstruction.
 void test_TCM__int_hashCode()
          Test hashcode function.
 void test_TCM__List_getContent()
          Test getContent
 void test_TCM__Object_clone()
          Test code goes here.
 void test_TCM__OrgJdomDocType_getDocType()
          Test getDocType.
 void test_TCM__OrgJdomDocument_addContent_OrgJdomComment()
          Test the addition of comments to Documents.
 void test_TCM__OrgJdomDocument_addContent_OrgJdomProcessingInstruction()
          Test the addition of ProcessingInstructions to Documents.
 void test_TCM__OrgJdomDocument_setContent_List()
          Test that setContent works according to specs.
 void test_TCM__OrgJdomDocument_setDocType_OrgJdomDocType()
          Test that setDocType works as expected.
 void test_TCM__OrgJdomDocument_setRootElement_OrgJdomElement()
          Test that setRootElement works as expected.
 void test_TCM__OrgJdomElement_getRootElement()
          Test that a Document can return a root element.
 void test_TCM__String_toString()
          Test that the toString method returns the expected result.
 void test_TCU__testSerialization()
          Test that an Element properly handles default namespaces
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestDocument

public TestDocument(java.lang.String name)
Construct a new instance.

Method Detail

main

public static void main(java.lang.String[] args)
The main method runs all the tests in the text ui


setUp

public void setUp()
This method is called before a test is executed.

Overrides:
setUp in class junit.framework.TestCase

suite

public static junit.framework.Test suite()
The suite method runs all the tests


tearDown

public void tearDown()
This method is called after a test is executed.

Overrides:
tearDown in class junit.framework.TestCase

test_TCC___List

public void test_TCC___List()
Test constructor of Document with a List of content including the root element.


test_TCC___List_OrgJdomDocType

public void test_TCC___List_OrgJdomDocType()
Test constructor of a Document with a List of content and a DocType.


test_TCC___OrgJdomElement

public void test_TCC___OrgJdomElement()
Test the constructor with only a root element.


test_TCC___OrgJdomElement_OrgJdomDocType

public void test_TCC___OrgJdomElement_OrgJdomDocType()
Test constructor of Document with and Element and Doctype


test_TCM__boolean_equals_Object

public void test_TCM__boolean_equals_Object()
Test object equality.


test_TCM__boolean_removeContent_OrgJdomComment

public void test_TCM__boolean_removeContent_OrgJdomComment()
Test removeContent for a given Comment


test_TCM__boolean_removeContent_OrgJdomProcessingInstruction

public void test_TCM__boolean_removeContent_OrgJdomProcessingInstruction()
Test removeContent with the supplied ProcessingInstruction.


test_TCM__int_hashCode

public void test_TCM__int_hashCode()
Test hashcode function.


test_TCM__Object_clone

public void test_TCM__Object_clone()
Test code goes here. Replace this comment.


test_TCM__OrgJdomDocType_getDocType

public void test_TCM__OrgJdomDocType_getDocType()
Test getDocType.


test_TCM__OrgJdomDocument_addContent_OrgJdomComment

public void test_TCM__OrgJdomDocument_addContent_OrgJdomComment()
Test the addition of comments to Documents.


test_TCM__OrgJdomDocument_addContent_OrgJdomProcessingInstruction

public void test_TCM__OrgJdomDocument_addContent_OrgJdomProcessingInstruction()
Test the addition of ProcessingInstructions to Documents.


test_TCM__OrgJdomDocument_setRootElement_OrgJdomElement

public void test_TCM__OrgJdomDocument_setRootElement_OrgJdomElement()
Test that setRootElement works as expected.


test_TCM__OrgJdomDocument_setDocType_OrgJdomDocType

public void test_TCM__OrgJdomDocument_setDocType_OrgJdomDocType()
Test that setDocType works as expected.


test_TCM__OrgJdomElement_getRootElement

public void test_TCM__OrgJdomElement_getRootElement()
Test that a Document can return a root element.


test_TCM__String_toString

public void test_TCM__String_toString()
Test that the toString method returns the expected result.


test_TCU__testSerialization

public void test_TCU__testSerialization()
                                 throws java.io.IOException,
                                        java.lang.ClassNotFoundException
Test that an Element properly handles default namespaces

Throws:
java.io.IOException
java.lang.ClassNotFoundException

test_TCM__List_getContent

public void test_TCM__List_getContent()
Test getContent


test_TCM__OrgJdomDocument_setContent_List

public void test_TCM__OrgJdomDocument_setContent_List()
Test that setContent works according to specs.



Copyright © 2007 Brett McLaughlin, Jason Hunter. All Rights Reserved.