|
21 | 21 | import javax.xml.transform.Transformer; |
22 | 22 | import javax.xml.transform.TransformerFactory; |
23 | 23 | import javax.xml.transform.dom.DOMResult; |
24 | | -import javax.xml.transform.dom.DOMSource; |
25 | 24 |
|
26 | 25 | import org.custommonkey.xmlunit.XMLTestCase; |
27 | 26 | import org.custommonkey.xmlunit.XMLUnit; |
28 | 27 | import org.w3c.dom.Document; |
29 | | -import org.w3c.dom.Element; |
30 | 28 |
|
31 | 29 | import org.springframework.core.io.ClassPathResource; |
32 | 30 | import org.springframework.core.io.Resource; |
@@ -100,18 +98,6 @@ public void testXmlNamespace() throws Exception { |
100 | 98 | assertXMLEqual("Invalid Source returned", expected, result); |
101 | 99 | } |
102 | 100 |
|
103 | | - public void testXmime() throws Exception { |
104 | | - Resource resource = new ClassPathResource("xmime.xsd", AbstractXsdSchemaTestCase.class); |
105 | | - XsdSchema schema = createSchema(resource); |
106 | | - String namespace = "urn:test"; |
107 | | - assertEquals("Invalid target namespace", namespace, schema.getTargetNamespace()); |
108 | | - Document result = (Document) ((DOMSource) schema.getSource()).getNode(); |
109 | | - Element schemaElement = result.getDocumentElement(); |
110 | | - Element elementElement = (Element) schemaElement.getFirstChild(); |
111 | | - assertNotNull("No expectedContentTypes found", |
112 | | - elementElement.getAttributeNS("http://www.w3.org/2005/05/xmlmime", "expectedContentTypes")); |
113 | | - } |
114 | | - |
115 | 101 | public void testCreateValidator() throws Exception { |
116 | 102 | Resource resource = new ClassPathResource("single.xsd", AbstractXsdSchemaTestCase.class); |
117 | 103 | XsdSchema single = createSchema(resource); |
|
0 commit comments