/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; Document newDoc; String textContent; doc = (Document) load("hc_staff", false); docType = doc.getDoctype(); textContent = docType.getTextContent(); assertNull("nodegettextcontent03", textContent); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; NamedNodeMap notationsMap; Notation notation1; String textContent; doc = (Document) load("hc_staff", false); docType = doc.getDoctype(); notationsMap = docType.getNotations(); notation1 = (Notation) notationsMap.getNamedItem("notation1"); textContent = docType.getTextContent(); assertNull("nodegettextcontent05", textContent); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DocumentType docType; String textContent; doc = (Document) load("hc_staff", true); docType = doc.getDoctype(); docType.setTextContent("textContent"); textContent = docType.getTextContent(); assertNull("nodesettextcontent03", textContent); } /**
if (((DocumentType)n).getTextContent() != null) { writer.writeDTD(((DocumentType)n).getTextContent());
if (((DocumentType)n).getTextContent() != null) { writer.writeDTD(((DocumentType)n).getTextContent());
if (((DocumentType)n).getTextContent() != null) { writer.writeDTD(((DocumentType)n).getTextContent());
if (((DocumentType)n).getTextContent() != null) { writer.writeDTD(((DocumentType)n).getTextContent());
if (((DocumentType)n).getTextContent() != null) { writer.writeDTD(((DocumentType)n).getTextContent());
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc; DOMImplementation domImpl; DocumentType docType; String textContent; String nullPubId = null; String nullSysId = null; DocumentType oldDocType; String rootName; doc = (Document) load("hc_staff", false); oldDocType = doc.getDoctype(); rootName = oldDocType.getName(); domImpl = doc.getImplementation(); docType = domImpl.createDocumentType(rootName, nullPubId, nullSysId); textContent = docType.getTextContent(); assertNull("nodegettextcontent04", textContent); } /**