Public Methods | |
| nodegetfirstchildnull (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
method returns null.
Retrieve the Text node form the second child of the first
employee and invoke the "getFirstChild()" method. It
should return null.
Definition at line 51 of file nodegetfirstchildnull.java.
|
|
Definition at line 53 of file nodegetfirstchildnull.java.
00054 {
00055 super(factory);
00056
00057 }
|
|
|
Reimplemented from DOMTest. Definition at line 77 of file nodegetfirstchildnull.java.
00077 {
00078 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodegetfirstchildnull";
00079 }
|
|
|
Definition at line 80 of file nodegetfirstchildnull.java. References DOMTestCase::doMain().
00080 {
00081 DOMTestCase.doMain(nodegetfirstchildnull.class,args);
00082 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 59 of file nodegetfirstchildnull.java. References DOMTestCase::assertNull(), and DOMTest::load().
00059 {
00060 Document doc;
00061 NodeList elementList;
00062 Node employeeNode;
00063 NodeList employeeList;
00064 Node secondChildNode;
00065 Node textNode;
00066 Node noChildNode;
00067 doc = load("staff");
00068 elementList = doc.getElementsByTagName("employee");
00069 employeeNode = elementList.item(0);
00070 employeeList = employeeNode.getChildNodes();
00071 secondChildNode = employeeList.item(1);
00072 textNode = secondChildNode.getFirstChild();
00073 noChildNode = textNode.getFirstChild();
00074 assertNull("nodeGetFirstChildNullAssert1",noChildNode);
00075
00076 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001