You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2023/01/06 07:54:12 UTC
[GitHub] [camel-quarkus] JiriOndrusek opened a new issue, #4381: Test framework - warn in case that global RouteBuilder is used when not supposed
JiriOndrusek opened a new issue, #4381:
URL: https://github.com/apache/camel-quarkus/issues/4381
Usage of `CamelQuarkusTestSupport` brings a lot of restrictions, suggestion and not specified behavior.
One thing that may happen and is not obvious might happen when RouteBuilder is used in not suggested way.
If RouteBuilder is created for example with `@Produces` (or similar way):
- camel-quarkus will apply this route builder for camel context when the application starts.
- First test method of the class may successfully use these routes.
- Another test method from the same class may not have those routes initialized (dependes on several things, like `@TestProfile`, `TestInstance`, ...). See https://github.com/apache/camel-quarkus/issues/4362
- Problem happens mainly when class runs with `true` as `isUseRouteBuilder` , which is the default value.
It would be nice to add some kind of warning when both conditions are fulfilled:
1. `isUseRouteBuilder` is `true`
2. There is a RouteBuilder used by camel-quarkus at startup
--
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: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-quarkus] jamesnetherton closed issue #4381: Test framework - problem when global RouteBuilder is used
Posted by GitBox <gi...@apache.org>.
jamesnetherton closed issue #4381: Test framework - problem when global RouteBuilder is used
URL: https://github.com/apache/camel-quarkus/issues/4381
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org