mayurbm commented on PR #25554: URL: https://github.com/apache/camel/pull/25554#issuecomment-5406774003
### CI Build Failure Fix `DefaultSupervisingRouteControllerTest.testSupervising` was failing with: ``` expected: <Cannot start> but was: <Failed to start route: cake because: Cannot start> ``` The `SupervisingRouteController` stores the exception thrown during restart attempts via `getRestartException()`. After wrapping consumer startup failures in `FailedToStartRouteException`, the stored exception is now a `FailedToStartRouteException` wrapping the original `IllegalArgumentException` — the same pattern already fixed for `MainSupervisingRouteControllerTest` and `SpringSupervisingRouteControllerTest` in the previous commit. Updated `testSupervising()` to assert `FailedToStartRouteException` on the outer exception and verify the cause's message and type. Local validation: - `mvn formatter:format impsort:sort` — no changes needed - `DefaultSupervisingRouteControllerTest`: Tests run: 2, Failures: 0 - `InternalRouteStartupManagerConsumerStartTest`: Tests run: 2, Failures: 0 - `MainSupervisingRouteControllerTest`: Tests run: 3, Failures: 0 - `SpringSupervisingRouteControllerTest`: Tests run: 1, Failures: 0 -- 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]
