use of org.apache.cxf.test.TestApplicationContext in project cxf by apache.
the class ApplicationContextTest method testContext.
@Test
public void testContext() throws Exception {
String s4 = getClass().getResource("/org/apache/cxf/transport/http/netty/server/spring/beans.xml").toString();
TestApplicationContext ctx = new TestApplicationContext(new String[] { S1, s4 });
// ctx.refresh();
checkContext(ctx);
ctx.close();
ctx.destroy();
}
use of org.apache.cxf.test.TestApplicationContext in project cxf by apache.
the class ApplicationContextTest method testContext.
@Test
public void testContext() throws Exception {
String s4 = getClass().getResource("/org/apache/cxf/transport/http_jetty/spring/beans.xml").toString();
TestApplicationContext ctx = new TestApplicationContext(new String[] { S1, s4 });
// ctx.refresh();
checkContext(ctx);
ctx.close();
ctx.destroy();
}
use of org.apache.cxf.test.TestApplicationContext 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);
}
}
use of org.apache.cxf.test.TestApplicationContext in project cxf by apache.
the class ApplicationContextTest method testContext.
@Test
public void testContext() throws Exception {
String s4 = getClass().getResource("/org/apache/cxf/transport/http_undertow/spring/beans.xml").toString();
TestApplicationContext ctx = new TestApplicationContext(new String[] { S1, s4 });
checkContext(ctx);
ctx.close();
ctx.destroy();
}
Aggregations