Public Methods | |
| documentinvalidcharacterexceptioncreateentref (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 "createEntityReference(tagName)" method with the tagName equal to the string "invalid^Name". Due to the invalid character the desired EXCEPTION should be raised.
Definition at line 48 of file documentinvalidcharacterexceptioncreateentref.java.
|
|
Definition at line 50 of file documentinvalidcharacterexceptioncreateentref.java.
00051 {
00052 super(factory);
00053
00054 }
|
|
|
Reimplemented from DOMTest. Definition at line 74 of file documentinvalidcharacterexceptioncreateentref.java.
00074 {
00075 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/documentinvalidcharacterexceptioncreateentref";
00076 }
|
|
|
Definition at line 77 of file documentinvalidcharacterexceptioncreateentref.java. References DOMTestCase::doMain().
00077 {
00078 DOMTestCase.doMain(documentinvalidcharacterexceptioncreateentref.class,args);
00079 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 56 of file documentinvalidcharacterexceptioncreateentref.java. References DOMTestCase::assertTrue(), and DOMTest::load().
00056 {
00057 Document doc;
00058 EntityReference badEntityRef;
00059 doc = load("staff");
00060
00061 {
00062 boolean success = false;
00063 try {
00064 badEntityRef = doc.createEntityReference("invalid^Name");
00065
00066 }
00067 catch(DOMException ex) {
00068 success = (ex.code == DOMException.INVALID_CHARACTER_ERR);
00069 }
00070 assertTrue("documentInvalidCharacterExceptionCreateEntRefAssert",success);
00071 }
00072
00073 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001