Public Methods | |
| nodechildnodesempty (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
that contains all children of this node. If there
are not any children, this is a NodeList that does not
contain any nodes.
Retrieve the Text node from the second child of the second
employee and invoke the "getChildNodes()" method. The
NodeList returned should not have any nodes.
Definition at line 55 of file nodechildnodesempty.java.
|
|
Definition at line 57 of file nodechildnodesempty.java.
00058 {
00059 super(factory);
00060
00061 }
|
|
|
Reimplemented from DOMTest. Definition at line 81 of file nodechildnodesempty.java.
00081 {
00082 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodechildnodesempty";
00083 }
|
|
|
Definition at line 84 of file nodechildnodesempty.java. References DOMTestCase::doMain().
00084 {
00085 DOMTestCase.doMain(nodechildnodesempty.class,args);
00086 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 63 of file nodechildnodesempty.java. References DOMTestCase::assertSize(), and DOMTest::load().
00063 {
00064 Document doc;
00065 NodeList elementList;
00066 Node employeeNode;
00067 NodeList childList;
00068 Node secondCNode;
00069 Node textNode;
00070 NodeList CNodeList;
00071 doc = load("staff");
00072 elementList = doc.getElementsByTagName("employee");
00073 employeeNode = elementList.item(1);
00074 childList = employeeNode.getChildNodes();
00075 secondCNode = childList.item(1);
00076 textNode = secondCNode.getFirstChild();
00077 CNodeList = textNode.getChildNodes();
00078 assertSize("nodeChildNodesEmptyAssert1",0,CNodeList);
00079
00080 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001