org.jdom.test.cases
Class TestCDATA

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

public final class TestCDATA
extends junit.framework.TestCase

Test for CDATA.

Version:
1.0.0
Author:
Victor Toni

Constructor Summary
TestCDATA(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()
          Test the CDATA constructor with a valid and an invalid string.
 void test_TCC()
          Test the protected CDATA constructor.
 void test_TCM___append_String()
          Test appending text values to this CDATA.
 void test_TCM___append_Text()
          Test appending text values to this CDATA.
 void test_TCM__boolean_equals_Object()
          Verify a simple object == object test
 void test_TCM__int_hashCode()
          Test that a real hashcode is returned and that a different one is returned for a different CDATA.
 void test_TCM__orgJdomText_setText_String()
          Test setting and resetting the text value of this CDATA.
 void test_TCM__String_getText()
          Verify that the text of the CDATA matches expected value.
 void test_TCM__String_toString()
          check for the expected toString text value of Comment.
 
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

TestCDATA

public TestCDATA(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


suite

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


setUp

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

Overrides:
setUp in class junit.framework.TestCase

tearDown

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

Overrides:
tearDown in class junit.framework.TestCase

test_TCC

public void test_TCC()
Test the protected CDATA constructor.


test_TCC___String

public void test_TCC___String()
Test the CDATA constructor with a valid and an invalid string.


test_TCM__boolean_equals_Object

public void test_TCM__boolean_equals_Object()
Verify a simple object == object test


test_TCM__int_hashCode

public void test_TCM__int_hashCode()
Test that a real hashcode is returned and that a different one is returned for a different CDATA.


test_TCM__orgJdomText_setText_String

public void test_TCM__orgJdomText_setText_String()
Test setting and resetting the text value of this CDATA.


test_TCM___append_String

public void test_TCM___append_String()
Test appending text values to this CDATA.


test_TCM___append_Text

public void test_TCM___append_Text()
Test appending text values to this CDATA.


test_TCM__String_getText

public void test_TCM__String_getText()
Verify that the text of the CDATA matches expected value. It assumes that the contrutor is working correctly


test_TCM__String_toString

public void test_TCM__String_toString()
check for the expected toString text value of Comment.



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