75 /*
76 * Test getName method.
77 */
78 @Test
79 public void testGetName() throws Exception {
80 DocumentType documentType = createDOM("DocumentType03.xml").getDoctype();
81 assertEquals(documentType.getName(), "note");
82 }
83
84 /*
85 * Test getSystemId and getPublicId method.
86 */
87 @Test
88 public void testGetSystemId() throws Exception {
89 DocumentType documentType = createDOM("DocumentType05.xml").getDoctype();
90 assertEquals(documentType.getSystemId(), "DocumentBuilderImpl02.dtd");
91 Assert.assertNull(documentType.getPublicId());
92 }
93
94 }
95
|
75 /*
76 * Test getName method.
77 */
78 @Test
79 public void testGetName() throws Exception {
80 DocumentType documentType = createDOM("DocumentType03.xml").getDoctype();
81 assertEquals(documentType.getName(), "note");
82 }
83
84 /*
85 * Test getSystemId and getPublicId method.
86 */
87 @Test
88 public void testGetSystemId() throws Exception {
89 DocumentType documentType = createDOM("DocumentType05.xml").getDoctype();
90 assertEquals(documentType.getSystemId(), "DocumentBuilderImpl02.dtd");
91 Assert.assertNull(documentType.getPublicId());
92 }
93
94 }
|