Public Methods | |
| documentcreateattribute (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
Retrieve the entire DOM document and invoke its "createAttribute(name)" method. It should create a new Attribute node with the given name. The name, value and type of the newly created object are retrieved and output.
Definition at line 46 of file documentcreateattribute.java.
|
|
Definition at line 48 of file documentcreateattribute.java.
00049 {
00050 super(factory);
00051
00052 }
|
|
|
Reimplemented from DOMTest. Definition at line 70 of file documentcreateattribute.java.
00070 {
00071 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/documentcreateattribute";
00072 }
|
|
|
Definition at line 73 of file documentcreateattribute.java. References DOMTestCase::doMain().
00073 {
00074 DOMTestCase.doMain(documentcreateattribute.class,args);
00075 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 54 of file documentcreateattribute.java. References DOMTestCase::assertEquals(), and DOMTest::load().
00054 {
00055 Document doc;
00056 Attr newAttrNode;
00057 String attrValue;
00058 String attrName;
00059 int attrType;
00060 doc = load("staff");
00061 newAttrNode = doc.createAttribute("district");
00062 attrValue = newAttrNode.getNodeValue();
00063 assertEquals("value","",attrValue);
00064 attrName = newAttrNode.getNodeName();
00065 assertEquals("name","district",attrName);
00066 attrType = (int)newAttrNode.getNodeType();
00067 assertEquals("type",2,attrType);
00068
00069 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001