/* * Runs the test case. */ void runTest() { Document doc; DocumentType docType; NamedNodeMap notations; Node notationNode; String notationName; doc = (Document) baseT::load("staff", false); docType = doc.getDoctype(); baseT::assertNotNull(docType, __LINE__, __FILE__); notations = docType.getNotations(); baseT::assertNotNull(notations, __LINE__, __FILE__); notationNode = notations.getNamedItem(SA::construct_from_utf8("notation1")); baseT::skipIfNull(notationNode); notationName = notationNode.getNodeName(); baseT::assertEquals("notation1", notationName, __LINE__, __FILE__); }
/* * Runs the test case. */ void runTest() { Document doc; DocumentType docType; NamedNodeMap notations; Notation notationNode; String systemId; doc = (Document) baseT::load("staff", false); docType = doc.getDoctype(); baseT::assertNotNull(docType, __LINE__, __FILE__); notations = docType.getNotations(); baseT::assertNotNull(notations, __LINE__, __FILE__); notationNode = (Notation) notations.getNamedItem(SA::construct_from_utf8("notation2")); baseT::skipIfNull(notationNode); systemId = notationNode.getSystemId(); baseT::assertURIEquals("uriEquals", "", "", "", "notation2File", "", "", "", false, systemId); }
/* * Runs the test case. */ void runTest() { Document doc; DocumentType docType; NamedNodeMap notations; Notation notationNode; String publicId; doc = (Document) baseT::load("staff", false); docType = doc.getDoctype(); baseT::assertNotNull(docType, __LINE__, __FILE__); notations = docType.getNotations(); baseT::assertNotNull(notations, __LINE__, __FILE__); notationNode = (Notation) notations.getNamedItem(SA::construct_from_utf8("notation2")); baseT::skipIfNull(notationNode); publicId = notationNode.getPublicId(); baseT::assertNull(publicId, __LINE__, __FILE__); }
/* * Runs the test case. */ void runTest() { Document doc; DocumentType docType; NamedNodeMap notationList; Node notation; int notationType; doc = (Document) baseT::load("staff", false); docType = doc.getDoctype(); baseT::assertNotNull(docType, __LINE__, __FILE__); notationList = docType.getNotations(); baseT::assertNotNull(notationList, __LINE__, __FILE__); for (unsigned int indexN65609 = 0; indexN65609 != notationList.getLength(); indexN65609++) { notation = (Node) notationList.item(indexN65609); notationType = (int) notation.getNodeType(); baseT::assertEquals(12, notationType, __LINE__, __FILE__); } }
/* * Runs the test case. */ void runTest() { Document doc; NodeList addressList; Node testAddress; NamedNodeMap attributes; DocumentType docType; NamedNodeMap notations; Notation notationNode; String notationName; doc = (Document) baseT::load("staff", false); docType = doc.getDoctype(); baseT::assertNotNull(docType, __LINE__, __FILE__); notations = docType.getNotations(); baseT::assertNotNull(notations, __LINE__, __FILE__); notationNode = (Notation) notations.getNamedItem(SA::construct_from_utf8("notation1")); baseT::skipIfNull(notationNode); addressList = doc.getElementsByTagName(SA::construct_from_utf8("address")); testAddress = addressList.item(0); attributes = testAddress.getAttributes(); baseT::assertSize(2, attributes, __LINE__, __FILE__); }