Examples of createParameterJsonSchema()


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

        assertEquals("localhost", conf.getParameter("host"));
        assertEquals("cacheContainer=", conf.getParameter("query"));

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

        assertTrue(json.contains("\"command\": { \"type\": \"string\""));
        assertTrue(json.contains("\"sync\": { \"type\": \"boolean\""));
    }
View Full Code Here

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

        assertEquals("myotherproxy", conf.getParameter("proxyHost"));
        assertEquals("2345", conf.getParameter("proxyPort"));

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

        assertTrue(json.contains("\"httpMethodRestrict\": { \"type\": \"string\""));
        assertTrue(json.contains("\"matchOnUriPrefix\": { \"type\": \"boolean\""));
    }
View Full Code Here

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\": \"integer\""));
        assertTrue(json.contains("\"dataTimeout\": { \"type\": \"integer\""));
    }
View Full Code Here

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

        assertEquals("true", conf.getParameter("useHeadersAsParameters"));
        assertEquals("100", conf.getParameter("readSize"));

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

        assertTrue(json.contains("\"outputClass\": { \"type\": \"string\""));
        assertTrue(json.contains("\"allowNamedParameters\": { \"type\": \"boolean\""));
        assertTrue(json.contains("\"beanRowMapper\": { \"type\": \"object\", \"javaType\": \"org.apache.camel.component.jdbc.BeanRowMapper\" }"));
View Full Code Here

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

        assertEquals("LOCAL", conf.getParameter("fileSystemType"));
        assertEquals("SEQUENCE_FILE", conf.getParameter("fileType"));
        assertEquals("0", conf.getParameter("initialDelay"));

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

        assertTrue(json.contains("\"pattern\": { \"type\": \"string\""));
        assertTrue(json.contains("\"wantAppend\": { \"type\": \"boolean\""));
    }
View Full Code Here

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

        assertEquals("LOCAL", conf.getParameter("fileSystemType"));
        assertEquals("ARRAY_FILE", conf.getParameter("fileType"));
        assertEquals("0", conf.getParameter("initialDelay"));

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

        assertTrue(json.contains("\"initialDelay\": { \"type\": \"integer\""));
        assertTrue(json.contains("\"checkIdleInterval\": { \"type\": \"integer\""));
    }
View Full Code Here

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\": \"integer\""));
        assertTrue(json.contains("\"download\": { \"type\": \"boolean\""));
    }
View Full Code Here

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

        assertEquals("Insert", conf.getParameter("statementType"));
        assertEquals("5", conf.getParameter("maxMessagesPerPoll"));

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

        assertTrue(json.contains("\"maxMessagesPerPoll\": { \"type\": \"integer\""));
        assertTrue(json.contains("\"statement\": { \"type\": \"string\""));
    }
View Full Code Here

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\": \"integer\""));
        assertTrue(json.contains("\"dataTimeout\": { \"type\": \"integer\""));
    }
View Full Code Here

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

        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\": \"string\""));
        assertTrue(json.contains("\"consumerKey\": { \"type\": \"string\""));
    }
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.