Package org.objectweb.celtix

Examples of org.objectweb.celtix.Bus


    public void setUp() {
        properties = new HashMap<String, Object>();
    }

    public void tearDown() throws Exception {
        Bus bus = Bus.getCurrent();
        bus.shutdown(true);
        Bus.setCurrent(null);
    }
View Full Code Here


        Bus.setCurrent(null);
    }

    public void testServiceCreation() throws Exception {
        properties.put("org.objectweb.celtix.BusId", "MPT1");
        Bus bus = Bus.init(null, properties);
        Bus.setCurrent(bus);

        URL wsdlUrl = getClass().getResource("resources/router.wsdl");
        Definition def = bus.getWSDLManager().getDefinition(wsdlUrl);

        QName sourceSrv = new QName("http://objectweb.org/HWRouter", "HTTPXMLServiceSource");
        String sourcePort = new String("HTTPXMLPortSource");
        QName destSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceDestination");
        String destPort = new String("HTTPSoapPortDestination");
View Full Code Here

    public void setUp() {
        properties = new HashMap<String, Object>();
    }

    public void tearDown() throws Exception {
        Bus bus = Bus.getCurrent();
        bus.shutdown(true);
        Bus.setCurrent(null);
    }
View Full Code Here

        Bus.setCurrent(null);
    }
   
    public void testAddRoutes() throws Exception {
        properties.put("org.objectweb.celtix.BusId", "celtix1");
        Bus bus = Bus.init(null, properties);
        Bus.setCurrent(bus);
       
        TestRouterFactory factory = new TestRouterFactory();
        factory.init(bus);
       
        Definition def = bus.getWSDLManager().getDefinition(getClass().getResource("resources/router.wsdl"));

        List<Router> rList = factory.addRoutes(def);
        assertEquals(4, rList.size());
        assertEquals(4, factory.routerCount);
    }
View Full Code Here

    public void tearDown() throws Exception {
        System.setProperty("java.class.path", javaClasspath);
        RouteTypeUtil.deleteDir(srcDir);
       
        Bus bus = Bus.getCurrent();
        bus.shutdown(true);
        Bus.setCurrent(null);
    }
View Full Code Here

        Bus.setCurrent(null);
    }

    public void testRouterCreation() throws Exception {
        properties.put("org.objectweb.celtix.BusId", "RT1");
        Bus bus = Bus.init(null, properties);
        Bus.setCurrent(bus);

        Definition def = bus.getWSDLManager().getDefinition(getClass().getResource("resources/router.wsdl"));

        QName sourceSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceSource");
        String sourcePort = new String("HTTPSoapPortSource");
        QName destSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceDestination");
        String destPort = new String("HTTPSoapPortDestination");
View Full Code Here

                                       false);
    }

    public void testPassThroughRouterInit() throws Exception {
        properties.put("org.objectweb.celtix.BusId", "RT2");
        Bus bus = Bus.init(null, properties);
        Bus.setCurrent(bus);

        Definition def = bus.getWSDLManager().getDefinition(getClass().getResource("resources/router.wsdl"));

        QName sourceSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceSource");
        String sourcePort = new String("HTTPSoapPortSource");
        QName destSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceDestination");
        String destPort = new String("HTTPSoapPortDestination");
View Full Code Here

                   ssmp.getContext());
    }

    public void testNormalRouterInit() throws Exception {
        properties.put("org.objectweb.celtix.BusId", "RT3");
        Bus bus = Bus.init(null, properties);
        Bus.setCurrent(bus);

        URL wsdlURl = getClass().getResource("resources/router.wsdl");
        Definition def = bus.getWSDLManager().getDefinition(wsdlURl);

        QName sourceSrv = new QName("http://objectweb.org/HWRouter", "HTTPXMLServiceSource");
        String sourcePort = new String("HTTPXMLPortSource");
        QName destSrv = new QName("http://objectweb.org/HWRouter", "HTTPSoapServiceDestination");
        String destPort = new String("HTTPSoapPortDestination");
View Full Code Here

    public void tearDown() throws Exception {
        System.setProperty("java.class.path", javaClasspath);
        RouteTypeUtil.deleteDir(opDir);
       
        Bus bus = Bus.getCurrent();
        bus.shutdown(true);
        Bus.setCurrent(null);
       
        System.clearProperty("celtix.config.file");
    }
View Full Code Here

    }
   
    public void testGetRouterWSDLList() throws Exception {
       
        properties.put("org.objectweb.celtix.BusId", "celtix1");
        Bus bus = Bus.init(null, properties);
       
        RouterManager rm = new RouterManager(bus);
        List<String> urlList = rm.getRouteWSDLList();
       
        assertNotNull("a valid list should be present", urlList);
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.Bus

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.