use of org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException in project cxf by apache.
the class ApplicationContextTest method testInvalid.
@Test
public void testInvalid() throws Exception {
String s4 = getClass().getResource("/org/apache/cxf/transport/http_jetty/spring/invalid-beans.xml").toString();
try {
new TestApplicationContext(new String[] { S1, s4 }).close();
fail("Expected XmlBeanDefinitionStoreException not thrown.");
} catch (XmlBeanDefinitionStoreException ex) {
assertTrue(ex.getCause() instanceof SAXParseException);
}
}
use of org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException in project cxf by apache.
the class ApplicationContextTest method testInvalid.
@Test
public void testInvalid() throws Exception {
String s4 = getClass().getResource("/org/apache/cxf/transport/http_undertow/spring/invalid-beans.xml").toString();
try {
new TestApplicationContext(new String[] { S1, s4 }).close();
fail("Expected XmlBeanDefinitionStoreException not thrown.");
} catch (XmlBeanDefinitionStoreException ex) {
assertTrue(ex.getCause() instanceof SAXParseException);
}
}
use of org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException in project cxf by apache.
the class ApplicationContextTest method testInvalid.
@Test
public void testInvalid() throws Exception {
String s4 = getClass().getResource("/org/apache/cxf/transport/http/netty/server/spring/invalid-beans.xml").toString();
try {
new TestApplicationContext(new String[] { S1, s4 }).close();
fail("Expected XmlBeanDefinitionStoreException not thrown.");
} catch (XmlBeanDefinitionStoreException ex) {
assertTrue(ex.getCause() instanceof SAXParseException);
}
}
Aggregations