/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc1; Document doc2; DocumentType docType1; DocumentType docType2; boolean isEqual; doc1 = (Document) load("hc_staff", false); doc2 = (Document) load("hc_staff", false); docType1 = doc1.getDoctype(); docType2 = doc2.getDoctype(); isEqual = docType1.isEqualNode(docType2); assertTrue("nodeisequalnode21", isEqual); } /**
/** * Runs the test case. * @throws Throwable Any uncaught exception causes test to fail */ public void runTest() throws Throwable { Document doc1; Document doc2; DOMImplementation domImpl1; DOMImplementation domImpl2; DocumentType docType1; DocumentType docType2; boolean isEqual; String nullPubId = null; String nullSysId = null; DocumentType oldDocType; String rootName; doc1 = (Document) load("barfoo", false); oldDocType = doc1.getDoctype(); rootName = oldDocType.getName(); doc2 = (Document) load("barfoo", false); domImpl1 = doc1.getImplementation(); domImpl2 = doc2.getImplementation(); docType1 = domImpl1.createDocumentType(rootName, nullPubId, nullSysId); docType2 = domImpl2.createDocumentType(rootName, nullPubId, nullSysId); isEqual = docType1.isEqualNode(docType2); assertTrue("nodeisequalnode22", isEqual); } /**