|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.bibalex.daf.handlers.xmlhandler.XmlHandlerTest
public class XmlHandlerTest
Test for XmlHandler.
The test case assumes that the file "TestResourceFile.xml" at the working dir contains:
Constructor Summary | |
---|---|
XmlHandlerTest()
|
Method Summary | |
---|---|
private org.w3c.dom.Node |
getChildByName(org.w3c.dom.Node parent,
java.lang.String targetName)
Get the child node that has the given name attribute. |
void |
testEncode()
|
void |
testGetNode()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
---|
public XmlHandlerTest()
Method Detail |
---|
public void testGetNode() throws java.lang.Exception
java.lang.Exception
private org.w3c.dom.Node getChildByName(org.w3c.dom.Node parent, java.lang.String targetName)
parent
- the parnet Node to search in its children.targetName
- The name of the child.
public void testEncode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |