Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.17.0
-
None
-
Unknown
Description
It would be nice to provide ProducerTemplate as Injectable bean when creating a Camel main test using annotations.
In test, we will be able to write something like:
@BeanInject ProducerTemplate producerTemplate;
advantages:
- lifecycle handled by the framework test
- no need to call context.createProducerTemplate() and destroy it
- coherence with Camel Spring Boot annotation which is providing
@Autowired ProducerTemplate producerTemplate;