davsclaus opened a new pull request, #31353: URL: https://github.com/apache/camel/pull/31353
## What is wrong `AdviceWithRouteConfigurationTest` fails on main (2 of its 5 tests): ``` testRouteConfigurationStarted expected: 0L but was: 1L testRouteConfigurationNotStarted mock://intercept Received message count. Expected: <11> but was: <7> ``` The test came with #31336 (CAMEL-28099) and the intercept change with #31337 (CAMEL-28100), merged one hour apart. Each PR's CI ran without the other, so neither saw the combination. The test still expects the intercept behaviour from before CAMEL-28100. ## What changed Test only. The code behaves as CAMEL-28100 intends: - the `InterceptDefinition` now stays in the route outputs when the route is created, so the advised route of a started context has it once (was 0); - the intercept runs before each step of the main route path only, not the steps of `interceptFrom`, `interceptSendToEndpoint`, `onException` and `onCompletion`. So `mock:intercept` gets 7 messages: `to`, `filter` and the advice step for "Hello World", plus `throwException` for "Kaboom" (was 11). ## Tests Ran camel-core `AdviceWith*Test`, `OnCompletionAndIntercept*Test` and `InterceptMainPathTest` on main with this change: 152 tests, all green. Found while testing #31334, #31335 and #31338 together on main. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
