Public Methods | |
| nodegetnextsiblingnull (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
"getNextSibling()" method returns null.
Retrieve the first child of the second employee and
invoke the "getNextSibling()" method. It should
be set to null.
Definition at line 51 of file nodegetnextsiblingnull.java.
|
|
Definition at line 53 of file nodegetnextsiblingnull.java.
00054 {
00055 super(factory);
00056
00057 }
|
|
|
Reimplemented from DOMTest. Definition at line 73 of file nodegetnextsiblingnull.java.
00073 {
00074 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodegetnextsiblingnull";
00075 }
|
|
|
Definition at line 76 of file nodegetnextsiblingnull.java. References DOMTestCase::doMain().
00076 {
00077 DOMTestCase.doMain(nodegetnextsiblingnull.class,args);
00078 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 59 of file nodegetnextsiblingnull.java. References DOMTestCase::assertNull(), and DOMTest::load().
00059 {
00060 Document doc;
00061 NodeList elementList;
00062 Node employeeNode;
00063 Node lcNode;
00064 Node nsNode;
00065 doc = load("staff");
00066 elementList = doc.getElementsByTagName("employee");
00067 employeeNode = elementList.item(1);
00068 lcNode = employeeNode.getLastChild();
00069 nsNode = lcNode.getNextSibling();
00070 assertNull("nodeGetNextSiblingNullAssert1",nsNode);
00071
00072 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001