CamelImplementationTest has a test that has does the following :
<enrich uri="switchyard://EnrichService?operationName=doNothing"/>
https://github.com/jboss-fuse/switchyard/blob/2.x.redhat-6-3-x-patch/components/camel/component/src/test/resources/org/switchyard/component/camel/deploy/impl-route.xml#L19
For some reason, this isn't being unmarshalled properly. If you set a debug breakpoint in org.switchyard.component.camel.RouteFactory.loadRoute(String), you'll notice that the resulting obj from binder.unmarshal looks like this :
Routes: [Route(CamelTestRoute)[[From[switchyard://OrderService]] -> [Log[ItemId [$ {body}]], Enrich[null], To[switchyard://WarehouseService?operationName=hasItem], Log[Title Name [${body}
]], Log[Properties [{{user.name}}, {{prop.domain}}, {{prop.composite}}, {{prop.component}}]]]]]
The Enrich[null] should contain the SwitchYard endpoint uri - the null is causing the error below.
Tests in error: sendOneWayMessageThroughCamelToTestAttachment(org.switchyard.component.camel.deploy.CamelImplementationTest) sendOneWayMessageThroughCamelToSwitchYardService(org.switchyard.component.camel.deploy.CamelImplementationTest)
Tests run: 43, Failures: 0, Errors: 2, Skipped: 1
|