Public Methods | |
| documentcreateprocessinginstruction (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 "createProcessingInstruction(target,data)" method. It should create a new PI node with the specified target and data. The target, data and type are retrieved and output.
Definition at line 50 of file documentcreateprocessinginstruction.java.
|
|
Definition at line 52 of file documentcreateprocessinginstruction.java.
00053 {
00054 super(factory);
00055
00056 }
|
|
|
Reimplemented from DOMTest. Definition at line 74 of file documentcreateprocessinginstruction.java.
00074 {
00075 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/documentcreateprocessinginstruction";
00076 }
|
|
|
Definition at line 77 of file documentcreateprocessinginstruction.java. References DOMTestCase::doMain().
00077 {
00078 DOMTestCase.doMain(documentcreateprocessinginstruction.class,args);
00079 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 58 of file documentcreateprocessinginstruction.java. References DOMTestCase::assertEquals(), and DOMTest::load().
00058 {
00059 Document doc;
00060 ProcessingInstruction newPINode;
00061 String piValue;
00062 String piName;
00063 int piType;
00064 doc = load("staff");
00065 newPINode = doc.createProcessingInstruction("TESTPI","This is a new PI node");
00066 piName = newPINode.getNodeName();
00067 assertEquals("name","TESTPI",piName);
00068 piValue = newPINode.getNodeValue();
00069 assertEquals("value","This is a new PI node",piValue);
00070 piType = (int)newPINode.getNodeType();
00071 assertEquals("type",7,piType);
00072
00073 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001