Package org.apache.camel

Examples of org.apache.camel.ComponentConfiguration.createParameterJsonSchema()


        assertEquals("foo", conf.getParameter("username"));
        assertEquals("secret", conf.getParameter("password"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);

        assertTrue(json.contains("\"maximumReconnectAttempts\": { \"type\": \"int\" }"));
        assertTrue(json.contains("\"download\": { \"type\": \"boolean\" }"));
    }
View Full Code Here


        assertEquals("foo", conf.getParameter("username"));
        assertEquals("secret", conf.getParameter("password"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);

        assertTrue(json.contains("\"maximumReconnectAttempts\": { \"type\": \"int\" }"));
        assertTrue(json.contains("\"dataTimeout\": { \"type\": \"int\" }"));
    }
View Full Code Here

        EndpointConfiguration conf = comp.createConfiguration("timer:foo?period=2000");

        assertEquals("2000", conf.getParameter("period"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);

        assertTrue(json.contains("\"timerName\": { \"type\": \"java.lang.String\" }"));
        assertTrue(json.contains("\"delay\": { \"type\": \"long\" }"));
    }
View Full Code Here

        EndpointConfiguration conf = comp.createConfiguration("test:my:foo?timeout=1000");

        assertEquals("1000", conf.getParameter("timeout"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);

        assertTrue(json.contains("\"retainFirst\": { \"type\": \"int\" }"));
        assertTrue(json.contains("\"timeout\": { \"type\": \"long\" }"));
    }
View Full Code Here

        EndpointConfiguration conf = comp.createConfiguration("file:target/foo?delete=true");

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

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);

        assertTrue(json.contains("\"exclude\": { \"type\": \"java.lang.String\" }"));
        assertTrue(json.contains("\"delete\": { \"type\": \"boolean\" }"));
    }
View Full Code Here

        EndpointConfiguration conf = comp.createConfiguration("twitter:search?keywords=camel");

        assertEquals("camel", conf.getParameter("keywords"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);

        assertTrue(json.contains("\"accessToken\": { \"type\": \"java.lang.String\" }"));
        assertTrue(json.contains("\"consumerKey\": { \"type\": \"java.lang.String\" }"));
    }
View Full Code Here

        EndpointConfiguration conf = comp.createConfiguration("seda:foo?blockWhenFull=true");

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

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);

        assertTrue(json.contains("\"timeout\": { \"type\": \"long\" }"));
        assertTrue(json.contains("\"blockWhenFull\": { \"type\": \"boolean\" }"));
    }
View Full Code Here

        EndpointConfiguration conf = comp.createConfiguration("dataset:foo?minRate=3");

        assertEquals("3", conf.getParameter("minRate"));

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);

        assertTrue(json.contains("\"preloadSize\": { \"type\": \"long\" }"));
        assertTrue(json.contains("\"minRate\": { \"type\": \"int\" }"));
    }
View Full Code Here

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

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);

        assertTrue(json.contains("\"action\": { \"type\": \"java.lang.String\" }"));
        assertTrue(json.contains("\"async\": { \"type\": \"boolean\" }"));
    }
View Full Code Here

        EndpointConfiguration conf = comp.createConfiguration("xslt:foo?deleteOutputFile=true");

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

        ComponentConfiguration compConf = comp.createComponentConfiguration();
        String json = compConf.createParameterJsonSchema();
        assertNotNull(json);

        assertTrue(json.contains("\"resourceUri\": { \"type\": \"java.lang.String\" }"));
        assertTrue(json.contains("\"synchronous\": { \"type\": \"boolean\" }"));
    }
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.