jamesnetherton commented on PR #23729:
URL: https://github.com/apache/camel/pull/23729#issuecomment-4610951796

   Good point! The `withCreateCamelContextPerClass()` method is indeed 
deprecated since 4.7.0 with "Do not use".
   
   The proper approach is to use JUnit 5's 
`@TestInstance(TestInstance.Lifecycle.PER_CLASS)` annotation directly on the 
test class - the framework automatically detects it (see 
`ContextManagerExtension:62-63`).
   
   For Camel Quarkus, instead of calling this method, test classes should use:
   ```java
   @TestInstance(TestInstance.Lifecycle.PER_CLASS)
   class MyTest extends CamelTestSupport {
       // ...
   }
   ```
   
   Should I revert the visibility change to `withCreateCamelContextPerClass()` 
and keep it protected?


-- 
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]

Reply via email to