Public Methods | |
| elementremoveattributenode (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
Retrieve the last child of the third employee and remove its "street" Attr node. The method should return the old attribute node.
Definition at line 44 of file elementremoveattributenode.java.
|
|
Definition at line 46 of file elementremoveattributenode.java.
00047 {
00048 super(factory);
00049
00050 }
|
|
|
Reimplemented from DOMTest. Definition at line 68 of file elementremoveattributenode.java.
00068 {
00069 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/elementremoveattributenode";
00070 }
|
|
|
Definition at line 71 of file elementremoveattributenode.java. References DOMTestCase::doMain().
00071 {
00072 DOMTestCase.doMain(elementremoveattributenode.class,args);
00073 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 52 of file elementremoveattributenode.java. References DOMTestCase::assertEquals(), and DOMTest::load().
00052 {
00053 Document doc;
00054 NodeList elementList;
00055 Element testEmployee;
00056 Attr streetAttr;
00057 Attr removedAttr;
00058 String removedValue;
00059 doc = load("staff");
00060 elementList = doc.getElementsByTagName("address");
00061 testEmployee = (Element)elementList.item(2);
00062 streetAttr = testEmployee.getAttributeNode("street");
00063 removedAttr = testEmployee.removeAttributeNode(streetAttr);
00064 removedValue = removedAttr.getValue();
00065 assertEquals("elementRemoveAttributeNodeAssert","No",removedValue);
00066
00067 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001