aspose file tools*
The moose likes Other Application Frameworks and the fly likes CAMEL Test Kit - Usage and Advantages? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "CAMEL Test Kit - Usage and Advantages?" Watch "CAMEL Test Kit - Usage and Advantages?" New topic
Author

CAMEL Test Kit - Usage and Advantages?

Chuck Staples
Greenhorn

Joined: Oct 22, 2008
Posts: 6
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

Joined: Sep 10, 2010
Posts: 9
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
 
Consider Paul's rocket mass heater.
 
subject: CAMEL Test Kit - Usage and Advantages?