camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Quinn Stevenson <qu...@pronoia-solutions.com>
Subject Re: mock http endpoint and retrieving value form properties file
Date Mon, 16 May 2016 16:43:30 GMT
Since you’re replacing to to URI, you could create another properties file with a different
test value in src/test/resources.  Then you could add the a test route for that URI in the
SpringCamelTestSupport by implementing the createRouteBuilder method.

> On May 16, 2016, at 12:53 AM, Deepak kumar <dksahoo551@gmail.com> wrote:
> 
> I have route in my camel context like this:-
> 
> <camel:route id="xxx">
> 			<camel:from uri="direct:test"></camel:from>
> 			<camel:to uri="bean:testProcessor"></camel:to>
> 			<camel:to	uri="{{testUrl}}"></camel:to>
> 			<camel:setHeader headerName="fromEndPoint">
> 			   <camel:simple>routename</camel:simple>
> 			</camel:setHeader>
> 			<camel:to uri="bean:responseHandler"></camel:to>
> 			
> 		</camel:route>
> 
> How can i test the above route ? When i am extending my test class from
> CamelSpringTestSupport then i am not able to fetch the {{testUrl}} value
> from the properties file and then how can emulate the behavior of http
> service.
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/mock-http-endpoint-and-retrieving-value-form-properties-file-tp5782604.html
> Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message