Public Methods | |
| nodeattributenodevalue (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
Attribute Node is the value of the Attribute.
Retrieve the Attribute named "domestic" from the last
child of the first employee and check the string returned
by the "getNodeValue()" method. It should be equal to
"Yes".
Definition at line 53 of file nodeattributenodevalue.java.
|
|
Definition at line 55 of file nodeattributenodevalue.java.
00056 {
00057 super(factory);
00058
00059 }
|
|
|
Reimplemented from DOMTest. Definition at line 75 of file nodeattributenodevalue.java.
00075 {
00076 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodeattributenodevalue";
00077 }
|
|
|
Definition at line 78 of file nodeattributenodevalue.java. References DOMTestCase::doMain().
00078 {
00079 DOMTestCase.doMain(nodeattributenodevalue.class,args);
00080 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 61 of file nodeattributenodevalue.java. References DOMTestCase::assertEquals(), and DOMTest::load().
00061 {
00062 Document doc;
00063 NodeList elementList;
00064 Element testAddr;
00065 Attr addrAttr;
00066 String attrValue;
00067 doc = load("staff");
00068 elementList = doc.getElementsByTagName("address");
00069 testAddr = (Element)elementList.item(0);
00070 addrAttr = testAddr.getAttributeNode("domestic");
00071 attrValue = addrAttr.getNodeValue();
00072 assertEquals("nodeAttributeNodeValueAssert1","Yes",attrValue);
00073
00074 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001