public class XMLTest
extends junit.framework.TestCase
| Constructor and Description |
|---|
XMLTest(String name)
Construct the test case for the XML class.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
testAddObject()
Test the
XML.add(Node,String,Object) method. |
void |
testAddString()
Test the
XML.add(Node,String,String) method. |
void |
testDocumentCreation()
Test the
XML.createDocument() method. |
void |
testDOM()
Test the
XML.createDOMParser() and XML.serialize(org.w3c.dom.Document, boolean) methods. |
void |
testDump()
Test the
XML.dump(PrintWriter,Node) method. |
void |
testEscape()
Test the
XML.escape(java.lang.String) method. |
void |
testGetDOMImplementation()
Test the
XML.getDOMImplementation() method. |
void |
testSAXParser()
Test the
XML.createSAXParser() method. |
void |
testUnwrappedText()
Test the
XML.unwrappedText(org.w3c.dom.Node) method. |
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringpublic XMLTest(String name)
protected void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionprotected void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseExceptionpublic void testDocumentCreation()
XML.createDocument() method.public void testDOM()
throws Exception
XML.createDOMParser() and XML.serialize(org.w3c.dom.Document, boolean) methods.Exceptionpublic void testSAXParser()
throws Exception
XML.createSAXParser() method.Exceptionpublic void testDump()
throws Exception
XML.dump(PrintWriter,Node) method.Exceptionpublic void testUnwrappedText()
throws Exception
XML.unwrappedText(org.w3c.dom.Node) method.Exceptionpublic void testAddString()
throws Exception
XML.add(Node,String,String) method.Exceptionpublic void testAddObject()
throws Exception
XML.add(Node,String,Object) method.Exceptionpublic void testEscape()
XML.escape(java.lang.String) method.public void testGetDOMImplementation()
XML.getDOMImplementation() method.Copyright © 1999–2017 Apache OODT. All rights reserved.