essobedo opened a new pull request #7041:
URL: https://github.com/apache/camel/pull/7041


   Fix for https://issues.apache.org/jira/browse/CAMEL-17690
   
   ## Motivation
   
   It is already possible to test a Camel main application by extending the 
base class `CamelMainTestSupport` but we would like to go even further by 
proposing an approach based on annotations like `SpringBootTest`
   
   ## Modifications
   
   * Adds the annotation `CamelMainTest` to configure and trigger the Camel 
Main test extension which supports out of the box:
     * Allow to advice rules easily -> attribute `advices`
     * Add support of `mockEndpointsAndSkip` and `mockEndpoints` -> attributes 
of the same name
     * Allow to override properties -> attribute `properties`
     * Add support of replaceRouteFromWith -> attribute of the same name
     * Allow to configure easily the property placeholder locations with a file 
name or all the locations  -> attributes `propertyPlaceholderFileName` and 
`propertyPlaceholderLocations` respectively
     * Allow to provide a main class  -> attribute `mainClass`  
     * Allow to add configuration classes  -> attribute `configurationClasses`  
     * Add support of dumpRouteCoverage -> attribute of the same name
   * Adds the annotation `Configure` to mark all the methods to call to 
configure the Camel Main Application
   * Adds the annotation `ReplaceInRegistry` to mark all the methods / fields 
whose return value / value should replace the beans with the same name and same 
type
   * Adds the annotation `AdviceRouteMapping` to define a mapping between a 
route and the route builder to call to advice the route
   * Adds the interface `DebuggerCallback` to implement in order to enable the 
debug mode
     


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to