Examples of createParameterJsonSchema()


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

        EndpointConfiguration conf = comp.createConfiguration("dataformaat:marshal:string?charset=iso-8859-1");

        assertEquals("iso-8859-1", conf.getParameter("charset"));

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

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

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

        EndpointConfiguration conf = comp.createConfiguration("mock:foo?retainFirst=10");

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

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

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

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

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

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

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

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

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

        EndpointConfiguration conf = comp.createConfiguration("log:foo?level=DEBUG");

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

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

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

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

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

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

        EndpointConfiguration conf = comp.createConfiguration("direct-vm:foo?block=false");

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

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

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

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

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

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

        EndpointConfiguration conf = comp.createConfiguration("direct:foo?block=true");

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

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

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

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

        EndpointConfiguration conf = comp.createConfiguration("jms:queue:foo?replyTo=bar");

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

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

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

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

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

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

        assertTrue(json.contains("\"producerPoolMinEvictableIdle\": { \"type\": \"integer\""));
        assertTrue(json.contains("\"allowDefaultCodec\": { \"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.