Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CAMEL Test Kit - Usage and Advantages?

 
Chuck Staples
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Manning page for the "Camel in Action" book indicates Camel has included a "powerful test kit for unit and integration testing".

Could you comment briefly on what this is and does, beyond the obvious?

Is it intended to be essentially Camel-centric, or a more generic enhancement / replacement for such tools as junit?

Is it intended as a primary vehicle for verifying enhancements / user-created plugins to Camel?

Does it include routines suitable for measuring (or optimizing :P) Camel code performance and/or scalability?

thanks and regards,
=Chuck Staples

 
Jonathan Anstey
author
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you comment briefly on what this is and does, beyond the obvious?
Is it intended to be essentially Camel-centric, or a more generic enhancement / replacement for such tools as junit?


The testing functionality in Camel is still used for creating JUnit tests - so it is not replacing JUnit. It started out mainly for testing Camel applications themselves but can also be used as a test driver for other applications. It has components for receiving and checking to make sure that certain conditions are met in the message (mock & test components). It also has a dataset component useful for generating large amounts of data for load testing.

Testing is covered extensively in chapter 6 and you can also find more information at http://camel.apache.org/testing.html

Is it intended as a primary vehicle for verifying enhancements / user-created plugins to Camel?


Yeah, you should use the camel-test module for testing Camel applications and/or extensions.

Does it include routines suitable for measuring (or optimizing :P) Camel code performance and/or scalability?


The dataset component is useful for testing how load affects a Camel application (you can see MPS) but certainly you'd have to resort to traditional monitoring & profiling tools to dig deeper.

Cheers,
Jon
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic