Re: Testing REST Service

2014-12-16 Thread Claus Ibsen
Hi

Yeah sure you can use any http client, or some of the http client that
are native to rest, such as camel-restlet.
You can also see the unit tests of the various rest-dsl how we test it
itself, eg in camel-jetty, camel-restlet, camel-rest-spark etc.

Also you do not need to use a Camel component to send a REST message,
in case you have found a favorite rest client you want to use.



On Tue, Dec 16, 2014 at 11:57 AM, fabrizio.spataro
fabrizio.spat...@bizmate.it wrote:
 Hello,

 i am using camel 2.14.1 (snapshot) to aim use newest camel rest component
 (using REST DSL).

 I am writing more rest services and i would test it using camel test java
 class.

 My main idea is write java class extends CamelTestSupport and use http camel
 component to invoke my REST services.

 Is it possible?

 There is another best testing strategy?

 Thanks

 FabryProg

 http://www.fabryprog.it



 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/Testing-REST-Service-tp5760757.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/


Re: Testing REST Service

2014-12-16 Thread Claus Ibsen
And btw Camel 2.14.1 is now synced in Maven central, so if you use
maven you can upgrade.

On Tue, Dec 16, 2014 at 11:57 AM, fabrizio.spataro
fabrizio.spat...@bizmate.it wrote:
 Hello,

 i am using camel 2.14.1 (snapshot) to aim use newest camel rest component
 (using REST DSL).

 I am writing more rest services and i would test it using camel test java
 class.

 My main idea is write java class extends CamelTestSupport and use http camel
 component to invoke my REST services.

 Is it possible?

 There is another best testing strategy?

 Thanks

 FabryProg

 http://www.fabryprog.it



 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/Testing-REST-Service-tp5760757.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/


Re: Testing REST Service

2014-12-16 Thread fabrizio.spataro
Sure... i can use any rest tool but my idea is create a set of regression
test to help me on the future. 

ps. i am moving  to maven central. Thanks



--
View this message in context: 
http://camel.465427.n5.nabble.com/Testing-REST-Service-tp5760757p5760764.html
Sent from the Camel - Users mailing list archive at Nabble.com.