Examples of createParameterJsonSchema()


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

        EndpointConfiguration conf = comp.createConfiguration("weather:foo?location=Madrid,Spain");

        assertEquals("Madrid,Spain", conf.getParameter("location"));

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

        assertTrue(json.contains("\"lat\": { \"type\": \"string\""));
        assertTrue(json.contains("\"location\": { \"type\": \"string\""));
        assertTrue(json.contains("\"mode\": { \"type\": \"string\", \"javaType\": \"org.apache.camel.component.weather.WeatherMode\", \"enum\": [ \"HTML\", \"JSON\", \"XML\" ]"));
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.