Examples of EndpointConfiguration


Examples of org.apache.camel.EndpointConfiguration

    }

    @Test
    public void testComponentConfiguration() throws Exception {
        MockComponent comp = context.getComponent("mock", MockComponent.class);
        EndpointConfiguration conf = comp.createConfiguration("mock:foo?retainFirst=10");

        assertEquals("10", conf.getParameter("retainFirst"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);
View Full Code Here

Examples of org.apache.camel.EndpointConfiguration

    }

    @Test
    public void testComponentConfiguration() throws Exception {
        BrowseComponent comp = context.getComponent("browse", BrowseComponent.class);
        EndpointConfiguration conf = comp.createConfiguration("browse:seda:foo?synchronous=true");

        assertEquals("true", conf.getParameter("synchronous"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);
View Full Code Here

Examples of org.apache.camel.EndpointConfiguration

    }

    @Test
    public void testComponentConfiguration() throws Exception {
        LogComponent comp = context.getComponent("log", LogComponent.class);
        EndpointConfiguration conf = comp.createConfiguration("log:foo?level=DEBUG");

        assertEquals("DEBUG", conf.getParameter("level"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);
View Full Code Here

Examples of org.apache.camel.EndpointConfiguration

    }

    @Test
    public void testComponentConfiguration() throws Exception {
        SedaComponent comp = context.getComponent("seda", SedaComponent.class);
        EndpointConfiguration conf = comp.createConfiguration("seda:foo?blockWhenFull=true");

        assertEquals("true", conf.getParameter("blockWhenFull"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);
View Full Code Here

Examples of org.apache.camel.EndpointConfiguration

    }

    @Test
    public void testComponentConfiguration() throws Exception {
        DirectVmComponent comp = context.getComponent("direct-vm", DirectVmComponent.class);
        EndpointConfiguration conf = comp.createConfiguration("direct-vm:foo?block=false");

        assertEquals("false", conf.getParameter("block"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);
View Full Code Here

Examples of org.apache.camel.EndpointConfiguration

    }

    @Test
    public void testComponentConfiguration() throws Exception {
        DirectComponent comp = context.getComponent("direct", DirectComponent.class);
        EndpointConfiguration conf = comp.createConfiguration("direct:foo?block=true");

        assertEquals("true", conf.getParameter("block"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);
View Full Code Here

Examples of org.apache.camel.EndpointConfiguration

    }

    @Test
    public void testComponentConfiguration() throws Exception {
        ControlBusComponent comp = context.getComponent("controlbus", ControlBusComponent.class);
        EndpointConfiguration conf = comp.createConfiguration("controlbus:route?routeId=bar&action=stop");

        assertEquals("bar", conf.getParameter("routeId"));
        assertEquals("stop", conf.getParameter("action"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);
View Full Code Here

Examples of org.apache.camel.EndpointConfiguration

    }

    @Test
    public void testComponentConfiguration() throws Exception {
        JmsComponent comp = context.getComponent("jms", JmsComponent.class);
        EndpointConfiguration conf = comp.createConfiguration("jms:queue:foo?replyTo=bar");

        assertEquals("bar", conf.getParameter("replyTo"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);
View Full Code Here

Examples of org.apache.camel.EndpointConfiguration

    }

    @Test
    public void testComponentConfiguration() throws Exception {
        NettyComponent comp = context.getComponent("netty4", NettyComponent.class);
        EndpointConfiguration conf = comp.createConfiguration("netty4:tcp://localhost:5150?sync=true"
                + "&maximumPoolSize=32&ssl=true&passphrase=#password");

        assertEquals("true", conf.getParameter("sync"));
        assertEquals("32", conf.getParameter("maximumPoolSize"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);
View Full Code Here

Examples of org.apache.camel.EndpointConfiguration

    }

    @Test
    public void testComponentConfiguration() throws Exception {
        ZooKeeperComponent comp = context.getComponent("zookeeper", ZooKeeperComponent.class);
        EndpointConfiguration conf = comp.createConfiguration("zookeeper://localhost:39913/somepath/somenode?create=true&createMode=PERSISTENT");

        assertEquals("true", conf.getParameter("create"));
        assertEquals("PERSISTENT", conf.getParameter("createMode"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.