[
https://issues.apache.org/jira/browse/CAMEL-20522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151662#comment-18151662
]
Claus Ibsen commented on CAMEL-20522:
-------------------------------------
CamelTestSupport was redesigned in Camel 4.7-4.9 (CAMEL-20785, CAMEL-20843,
CAMEL-20837): `tearDown` is now final, and
the CamelContext is stopped by the `ContextManagerExtension` registered with
`@RegisterExtension`, in its
`afterEach`/`afterAll`, so it no longer depends on the test class hierarchy.
CAMEL-23116 fixed the PER_CLASS lifecycle.
Closing as the code this ticket describes is gone.
_Claude Code on behalf of davsclaus_
> camel-test - CamelTestSupport does not call tearDown for each test method in
> some test classes
> ----------------------------------------------------------------------------------------------
>
> Key: CAMEL-20522
> URL: https://issues.apache.org/jira/browse/CAMEL-20522
> Project: Camel
> Issue Type: Test
> Components: camel-test
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.x
>
>
> If you have test classes that does not directly extend CamelTestSupport then
> your tests may not cleanup after testing. All the tearDown is not invoked.
> It seems its due to CamelTestSupport implements both some interfaces from
> JUnit and also have @AfterEach annotation and this skrews up junit when you
> have test class hierachies.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)