Package org.switchyard.component.camel.common.selector

Examples of org.switchyard.component.camel.common.selector.CamelOperationSelector


            _camelContext.getTypeConverterRegistry()
                         .addTypeConverter(String.class, BigEndianHeapChannelBuffer.class, new MyConverter());
            MockEndpoint mockEndpoint = _camelContext.getEndpoint("switchyard://dummyService", MockEndpoint.class);
            producer.sendBody("direct://xpath", new BigEndianHeapChannelBuffer(payload.getBytes()));
            Exchange exchange = mockEndpoint.getExchanges().get(0);
            CamelOperationSelector selector = new CamelOperationSelector(operationSelectorModel);
            QName operation = selector.selectOperation(new CamelBindingData(exchange.getIn()));
            Assert.assertNotNull(operation);
            Assert.assertEquals("greet", operation.getLocalPart());
        } finally {
            handler.stop();
        }
View Full Code Here

TOP

Related Classes of org.switchyard.component.camel.common.selector.CamelOperationSelector

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.