This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 30ed6d7434ab camel-test-junit6: Make more test configuration methods 
public for framework extensibility (#23729)
30ed6d7434ab is described below

commit 30ed6d7434abfb9f2a596e2287e930006f76445e
Author: James Netherton <[email protected]>
AuthorDate: Wed Jun 10 07:07:34 2026 +0100

    camel-test-junit6: Make more test configuration methods public for 
framework extensibility (#23729)
    
    Changed protected methods to public in CamelContextConfiguration and
    TestExecutionConfiguration to allow external test frameworks (e.g.
    Camel Quarkus) to extend base test classes.
    
    Co-authored-by: Claude Sonnet 4.5 <[email protected]>
---
 .../java/org/apache/camel/test/junit6/CamelContextConfiguration.java  | 4 ++--
 .../java/org/apache/camel/test/junit6/TestExecutionConfiguration.java | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/components/camel-test/camel-test-junit6/src/main/java/org/apache/camel/test/junit6/CamelContextConfiguration.java
 
b/components/camel-test/camel-test-junit6/src/main/java/org/apache/camel/test/junit6/CamelContextConfiguration.java
index c1d91d0dda58..fefa0a4e488c 100644
--- 
a/components/camel-test/camel-test-junit6/src/main/java/org/apache/camel/test/junit6/CamelContextConfiguration.java
+++ 
b/components/camel-test/camel-test-junit6/src/main/java/org/apache/camel/test/junit6/CamelContextConfiguration.java
@@ -319,7 +319,7 @@ public class CamelContextConfiguration {
     /**
      * A supplier that classes can use to create a {@link RouteBuilder} to 
define the routes for testing
      */
-    protected CamelContextConfiguration withRoutesSupplier(
+    public CamelContextConfiguration withRoutesSupplier(
             RoutesSupplier routesSupplier) {
         this.routesSupplier = routesSupplier;
         return this;
@@ -348,7 +348,7 @@ public class CamelContextConfiguration {
      *
      * @param postProcessor the post-test processor to use
      */
-    protected CamelContextConfiguration withPostProcessor(
+    public CamelContextConfiguration withPostProcessor(
             PostProcessor postProcessor) {
         this.postProcessor = postProcessor;
         return this;
diff --git 
a/components/camel-test/camel-test-junit6/src/main/java/org/apache/camel/test/junit6/TestExecutionConfiguration.java
 
b/components/camel-test/camel-test-junit6/src/main/java/org/apache/camel/test/junit6/TestExecutionConfiguration.java
index d48145773de7..172ad613ae69 100644
--- 
a/components/camel-test/camel-test-junit6/src/main/java/org/apache/camel/test/junit6/TestExecutionConfiguration.java
+++ 
b/components/camel-test/camel-test-junit6/src/main/java/org/apache/camel/test/junit6/TestExecutionConfiguration.java
@@ -163,7 +163,7 @@ public class TestExecutionConfiguration {
      * @return     <tt>true</tt> per class, <tt>false</tt> per test.
      */
     @Deprecated(since = "4.7.0")
-    protected TestExecutionConfiguration 
withCreateCamelContextPerClass(boolean createCamelContextPerClass) {
+    public TestExecutionConfiguration withCreateCamelContextPerClass(boolean 
createCamelContextPerClass) {
         this.createCamelContextPerClass = createCamelContextPerClass;
         return this;
     }

Reply via email to