org.jdom.test.cases
Class TestNamespace

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

public final class TestNamespace
extends junit.framework.TestCase


Constructor Summary
TestNamespace(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_TCM__boolean_equals_Object()
          Test the object comparison method.
 void test_TCM__int_hashCode()
          Verify that a namespace will produce a hashcode.
 void test_TCM__OrgJdomNamespace_getNamespace_String_String()
          Test the prefix, uri version of getNamespace.
 void test_TCM__OrgJdomNamespace_getNamespace_String()
          Test the URI only Namespace.
 void test_TCM__String_getPrefix()
          Test getPrefix()
 void test_TCM__String_getURI()
          Test than a namespace returns the correct URI
 void test_TCM__String_toString()
          Test that toString() operates according to JDOM specs
 
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

TestNamespace

public TestNamespace(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_TCM__boolean_equals_Object

public void test_TCM__boolean_equals_Object()
Test the object comparison method.


test_TCM__int_hashCode

public void test_TCM__int_hashCode()
Verify that a namespace will produce a hashcode.


test_TCM__OrgJdomNamespace_getNamespace_String

public void test_TCM__OrgJdomNamespace_getNamespace_String()
Test the URI only Namespace.


test_TCM__OrgJdomNamespace_getNamespace_String_String

public void test_TCM__OrgJdomNamespace_getNamespace_String_String()
Test the prefix, uri version of getNamespace.


test_TCM__String_getPrefix

public void test_TCM__String_getPrefix()
Test getPrefix()


test_TCM__String_getURI

public void test_TCM__String_getURI()
Test than a namespace returns the correct URI


test_TCM__String_toString

public void test_TCM__String_toString()
Test that toString() operates according to JDOM specs



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