essobedo opened a new pull request #74: URL: https://github.com/apache/camel-examples/pull/74
## Motivation A new component has been added to write tests for Camel Main applications, since there are several examples based on Camel Main, it would nice to leverage it to simplify the existing tests of the corresponding examples. ## Modifications * Use `camel-test-main-junit5` instead of `camel-test-junit5` in all pom of examples based on Camel Main * Make the corresponding test classes extend `CamelMainTestSupport ` instead of `CamelTestSupport` to be able to use features specific to Camel Main in the tests * Bind components inside `bindToRegistry` instead of `createCamelContext` as it is more convenient for it * Override properties by overriding `useOverridePropertiesWithPropertiesComponent` instead of calling `camelContext.getPropertiesComponent().setOverrideProperties` as it is more convenient for it * Call the method `replaceRouteFromWith` to replace a from endpoint instead of advising explicitly the route as it is more convenient for it * Avoid setting explicitly the location of the configurations from `camelContext.getPropertiesComponent()` as `classpath:application.properties` is the default location by overriding when needed the dedicated method `getPropertyPlaceholderLocations` -- 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]
