Package org.apache.camel.impl

Examples of org.apache.camel.impl.ParameterConfiguration


        SortedMap<String, ParameterConfiguration> parameterConfigurationMap = configuration.getParameterConfigurationMap();
        if (verbose) {
            Set<Map.Entry<String, ParameterConfiguration>> entries = parameterConfigurationMap.entrySet();
            for (Map.Entry<String, ParameterConfiguration> entry : entries) {
                String name = entry.getKey();
                ParameterConfiguration config = entry.getValue();
                LOG.info("Has name: {} with type {}", name, config.getParameterType().getName());
            }
        }

        assertParameterConfig(configuration, "format", PayloadFormat.class);
        assertParameterConfig(configuration, "sObjectName", String.class);
View Full Code Here


        assertEquals("endpoint.updateTopic", false, endpointConfig.isUpdateTopic());
    }

    public static void assertParameterConfig(ComponentConfiguration configuration, String name,
                                       Class<?> parameterType) {
        ParameterConfiguration config = configuration.getParameterConfiguration(name);
        assertNotNull("ParameterConfiguration should exist for parameter name " + name, config);
        assertEquals("ParameterConfiguration." + name + ".getName()", name, config.getName());
        assertEquals("ParameterConfiguration." + name + ".getParameterType()", parameterType,
                config.getParameterType());
    }
View Full Code Here

        SortedMap<String, ParameterConfiguration> parameterConfigurationMap = configuration.getParameterConfigurationMap();
        if (verbose) {
            Set<Map.Entry<String, ParameterConfiguration>> entries = parameterConfigurationMap.entrySet();
            for (Map.Entry<String, ParameterConfiguration> entry : entries) {
                String name = entry.getKey();
                ParameterConfiguration config = entry.getValue();
                LOG.info("Has name: {} with type {}", name, config.getParameterType().getName());
            }
        }

        assertParameterConfig(configuration, "concurrentConsumers", int.class);
        assertParameterConfig(configuration, "clientId", String.class);
View Full Code Here

        assertEquals("endpoint.timeToLive", 1000L, endpoint.getTimeToLive());
    }

    public static void assertParameterConfig(ComponentConfiguration configuration, String name,
                                       Class<?> parameterType) {
        ParameterConfiguration config = configuration.getParameterConfiguration(name);
        assertNotNull("ParameterConfiguration should exist for parameter name " + name, config);
        assertEquals("ParameterConfiguration." + name + ".getName()", name, config.getName());
        assertEquals("ParameterConfiguration." + name + ".getParameterType()", parameterType,
                config.getParameterType());
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.impl.ParameterConfiguration

Copyright © 2018 www.massapicom. 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.