Package org.apache.cxf.test

Examples of org.apache.cxf.test.TestApplicationContext


    @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, S2, S3, s4});
       
        //ctx.refresh();
        checkContext(ctx);
    }
View Full Code Here


    @Test
    public void testContextWithProperties() throws Exception {
        String s4 = getClass()
            .getResource("/org/apache/cxf/transport/http_jetty/spring/beans-props.xml").toString();
       
        TestApplicationContext ctx = new TestApplicationContext(
            new String[] {S1, S2, S3, s4});
        checkContext(ctx);
    }
View Full Code Here

    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});
            fail("Expected XmlBeanDefinitionStoreException not thrown.");
        } catch (XmlBeanDefinitionStoreException ex) {
            assertTrue(ex.getCause() instanceof SAXParseException);
        }
    }
View Full Code Here

    @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();
    }
View Full Code Here

    @Test
    public void testContextWithProperties() throws Exception {
        String s4 = getClass()
            .getResource("/org/apache/cxf/transport/http/netty/server/spring/beans-props.xml").toString();
       
        TestApplicationContext ctx = new TestApplicationContext(
            new String[] {S1, s4});
        checkContext(ctx);
        ctx.close();
        ctx.destroy();
    }
View Full Code Here

    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});
            fail("Expected XmlBeanDefinitionStoreException not thrown.");
        } catch (XmlBeanDefinitionStoreException ex) {
            assertTrue(ex.getCause() instanceof SAXParseException);
        }
    }
View Full Code Here

    @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();
    }
View Full Code Here

    @Test
    public void testContextWithProperties() throws Exception {
        String s4 = getClass()
            .getResource("/org/apache/cxf/transport/http_jetty/spring/beans-props.xml").toString();
       
        TestApplicationContext ctx = new TestApplicationContext(
            new String[] {S1, s4});
        checkContext(ctx);
        ctx.close();
        ctx.destroy();
    }
View Full Code Here

    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, S2, S3, s4});
            fail("Expected XmlBeanDefinitionStoreException not thrown.");
        } catch (XmlBeanDefinitionStoreException ex) {
            assertTrue(ex.getCause() instanceof SAXParseException);
        }
    }
View Full Code Here

    @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, S2, S3, s4});
       
        //ctx.refresh();
       
        ConfigurerImpl cfg = new ConfigurerImpl(ctx);
       
        EndpointInfo info = getEndpointInfo("bla", "Foo", "http://localhost:9000");
       
        Bus bus = (Bus) ctx.getBean(Bus.DEFAULT_BUS_ID);
        bus.setExtension(cfg, Configurer.class);
       
        DestinationFactoryManager dfm = bus.getExtension(DestinationFactoryManager.class);
        DestinationFactory factory = dfm.getDestinationFactory("http://schemas.xmlsoap.org/soap/http");
        Destination d = factory.getDestination(info);
View Full Code Here

TOP

Related Classes of org.apache.cxf.test.TestApplicationContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.