org.jdom.test.cases
Class TestComment

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

public final class TestComment
extends junit.framework.TestCase


Constructor Summary
TestComment(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 comment constructor with a valid and an invalid string.
 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 comment.
 void test_TCM__OrgJdomComment_setText_String()
          Test setting and resetting the text value of this Comment.
 void test_TCM__String_getSerializedForm()
          Match the XML fragment this comment produces.
 void test_TCM__String_getText()
          verify that the text of the Comment 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

TestComment

public TestComment(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 the comment 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 comment.


test_TCM__OrgJdomComment_setText_String

public void test_TCM__OrgJdomComment_setText_String()
Test setting and resetting the text value of this Comment.


test_TCM__String_getSerializedForm

public void test_TCM__String_getSerializedForm()
Match the XML fragment this comment produces.


test_TCM__String_getText

public void test_TCM__String_getText()
verify that the text of the Comment matches expected value.


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.