Runs the test case.
Document doc;
DocumentType docType;
NamedNodeMap entities;
NamedNodeMap notations;
Node removedNode;
String nullNS = null;
doc = (Document) load("staffNS", true);
docType = doc.getDoctype();
entities = docType.getEntities();
assertNotNull("entitiesNotNull", entities);
notations = docType.getNotations();
assertNotNull("notationsNotNull", notations);
try {
removedNode = entities.removeNamedItemNS(nullNS, "ent1");
fail("entity_throw_DOMException");
} catch (DOMException ex) {
switch (ex.code) {
case 8 :
break;
case 7 :
break;
default:
throw ex;
}
}
try {
removedNode = notations.removeNamedItemNS(nullNS, "notation1");
fail("notation_throw_DOMException");
} catch (DOMException ex) {
switch (ex.code) {
case 8 :
break;
case 7 :
break;
default:
throw ex;
}
}