org.jdom.test.cases
Class TestDocType

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

public final class TestDocType
extends junit.framework.TestCase


Constructor Summary
TestDocType(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___String_String_String()
          test with element name, public and systemIDs.
 void test_TCC___String_String()
          test both the setting of the element name and systemID.
 void test_TCC___String()
          Test a simple DocType with a name.
 void test_TCM__boolean_equals_Object()
          Do an object comparison with itself to confirm boolean equals works.
 void test_TCM__int_hashCode()
          look for a integer hashCode
 void test_TCM__Object_clone()
          use toString to test the clone.
 void test_TCM__OrgJdomDocType_setPublicID_String()
          Test the setter for publicID.
 void test_TCM__OrgJdomDocType_setSystemID_String()
          Test the setter for SystemID
 void test_TCM__String_getElementName()
          Test getElementName.
 void test_TCM__String_getPublicID()
          Test that getPublicID matches the value from the constructor.
 void test_TCM__String_getSerializedForm()
          Test that getSerializedForm works as expected.
 void test_TCM__String_getSystemID()
          Test that getSystemID returns the same value as set in the constructor.
 void test_TCM__String_toString()
          Test toString returns the expected string.
 
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

TestDocType

public TestDocType(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___String

public void test_TCC___String()
Test a simple DocType with a name.


test_TCC___String_String

public void test_TCC___String_String()
test both the setting of the element name and systemID.


test_TCC___String_String_String

public void test_TCC___String_String_String()
test with element name, public and systemIDs.


test_TCM__boolean_equals_Object

public void test_TCM__boolean_equals_Object()
Do an object comparison with itself to confirm boolean equals works.


test_TCM__int_hashCode

public void test_TCM__int_hashCode()
look for a integer hashCode


test_TCM__Object_clone

public void test_TCM__Object_clone()
use toString to test the clone.


test_TCM__OrgJdomDocType_setPublicID_String

public void test_TCM__OrgJdomDocType_setPublicID_String()
Test the setter for publicID.


test_TCM__OrgJdomDocType_setSystemID_String

public void test_TCM__OrgJdomDocType_setSystemID_String()
Test the setter for SystemID


test_TCM__String_getElementName

public void test_TCM__String_getElementName()
Test getElementName.


test_TCM__String_getPublicID

public void test_TCM__String_getPublicID()
Test that getPublicID matches the value from the constructor.


test_TCM__String_getSerializedForm

public void test_TCM__String_getSerializedForm()
Test that getSerializedForm works as expected.


test_TCM__String_getSystemID

public void test_TCM__String_getSystemID()
Test that getSystemID returns the same value as set in the constructor.


test_TCM__String_toString

public void test_TCM__String_toString()
Test toString returns the expected string.



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