Public Methods | |
| nodeattributenodeattribute (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
Retrieve the first attribute from the last child of the first employee and invoke the "getAttributes()" method on the Attribute Node. It should return null.
Definition at line 45 of file nodeattributenodeattribute.java.
|
|
Definition at line 47 of file nodeattributenodeattribute.java.
00048 {
00049 super(factory);
00050
00051 }
|
|
|
Reimplemented from DOMTest. Definition at line 69 of file nodeattributenodeattribute.java.
00069 {
00070 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodeattributenodeattribute";
00071 }
|
|
|
Definition at line 72 of file nodeattributenodeattribute.java. References DOMTestCase::doMain().
00072 {
00073 DOMTestCase.doMain(nodeattributenodeattribute.class,args);
00074 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 53 of file nodeattributenodeattribute.java. References DOMTestCase::assertNull(), and DOMTest::load().
00053 {
00054 Document doc;
00055 NodeList elementList;
00056 Element testAddr;
00057 NamedNodeMap addrAttr;
00058 Node attrNode;
00059 NamedNodeMap attrList;
00060 doc = load("staff");
00061 elementList = doc.getElementsByTagName("address");
00062 testAddr = (Element)elementList.item(0);
00063 addrAttr = testAddr.getAttributes();
00064 attrNode = addrAttr.item(0);
00065 attrList = attrNode.getAttributes();
00066 assertNull("nodeAttributeNodeAttributeAssert1",attrList);
00067
00068 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001