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

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

commit 6fabe23730f71f3cc9d9dcb3825be0de9356a04a
Author: JiriOndrusek <ondrusek.j...@gmail.com>
AuthorDate: Mon Jun 10 09:25:28 2024 +0200

    Rebased + format fix
---
 .../camel/quarkus/test/CamelQuarkusTestSupport.java | 21 ++++++++++-----------
 .../test/CustomCamelContextConfiguration.java       |  4 ++--
 .../test/CustomTestExecutionConfiguration.java      |  2 +-
 .../TransientCamelContextNotStoppingManager.java    |  2 +-
 .../patterns/DebugNoLazyTypeConverterTest.java      |  1 +
 5 files changed, 15 insertions(+), 15 deletions(-)

diff --git 
a/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CamelQuarkusTestSupport.java
 
b/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CamelQuarkusTestSupport.java
index 626391d0ad..94cd0f63b2 100644
--- 
a/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CamelQuarkusTestSupport.java
+++ 
b/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CamelQuarkusTestSupport.java
@@ -92,8 +92,8 @@ public class CamelQuarkusTestSupport extends 
AbstractTestSupport
 
     private static final Logger LOG = 
LoggerFactory.getLogger(CamelQuarkusTestSupport.class);
 
-//    @RegisterExtension
-//    protected CamelTestSupport camelTestSupportExtension = this;
+    //    @RegisterExtension
+    //    protected CamelTestSupport camelTestSupportExtension = this;
 
     private final StopWatch watch = new StopWatch();
     private String currentTestName;
@@ -119,7 +119,7 @@ public class CamelQuarkusTestSupport extends 
AbstractTestSupport
                 .withJMX(useJmx())
                 .withUseRouteBuilder(isUseRouteBuilder())
                 .withDumpRouteCoverage(isDumpRouteCoverage())
-                        .withAutoStartContext(false);
+                .withAutoStartContext(false);
 
         contextConfiguration()
                 .withCustomCamelContextSupplier(this::camelContextSupplier)
@@ -137,11 +137,11 @@ public class CamelQuarkusTestSupport extends 
AbstractTestSupport
     }
 
     CustomCamelContextConfiguration contextConfiguration() {
-        return (CustomCamelContextConfiguration)camelContextConfiguration;
+        return (CustomCamelContextConfiguration) camelContextConfiguration;
     }
 
     CustomTestExecutionConfiguration testConfigurationBuilder() {
-        return (CustomTestExecutionConfiguration)testConfigurationBuilder;
+        return (CustomTestExecutionConfiguration) testConfigurationBuilder;
     }
 
     //------------------------ quarkus callbacks ---------------
@@ -211,7 +211,7 @@ public class CamelQuarkusTestSupport extends 
AbstractTestSupport
      */
     @Override
     public CamelContext context() {
-       return this.context;
+        return this.context;
     }
 
     @Deprecated(since = "4.7.0")
@@ -260,7 +260,8 @@ public class CamelQuarkusTestSupport extends 
AbstractTestSupport
         long time = watch.taken();
 
         if (isRouteCoverageEnabled()) {
-            ExtensionHelper.testEndFooter(getClass(), currentTestName, time, 
new RouteCoverageDumperExtension((ModelCamelContext) context));
+            ExtensionHelper.testEndFooter(getClass(), currentTestName, time,
+                    new RouteCoverageDumperExtension((ModelCamelContext) 
context));
         } else {
             ExtensionHelper.testEndFooter(getClass(), currentTestName, time);
         }
@@ -290,7 +291,6 @@ public class CamelQuarkusTestSupport extends 
AbstractTestSupport
         // noop
     }
 
-
     /**
      * Factory method which derived classes can use to create a {@link 
RouteBuilder} to define the routes for testing
      */
@@ -315,7 +315,6 @@ public class CamelQuarkusTestSupport extends 
AbstractTestSupport
         return new RoutesBuilder[] { createRouteBuilder() };
     }
 
-
     void internalAfterAll(QuarkusTestContext context, ExtensionContext 
extensionContext) {
         try {
             if (!testConfiguration().isCreateCamelContextPerClass()) {
@@ -329,8 +328,8 @@ public class CamelQuarkusTestSupport extends 
AbstractTestSupport
     }
 
     void internalBeforeAll(ExtensionContext context) {
-        final boolean perClassPresent
-                = context.getTestInstanceLifecycle().filter(lc -> 
lc.equals(TestInstance.Lifecycle.PER_CLASS)).isPresent();
+        final boolean perClassPresent = context.getTestInstanceLifecycle()
+                .filter(lc -> 
lc.equals(TestInstance.Lifecycle.PER_CLASS)).isPresent();
         if (perClassPresent) {
             LOG.trace("Creating a legacy context manager for {}", 
context.getDisplayName());
             
testConfigurationBuilder().withCustomCreateCamelContextPerClass(perClassPresent);
diff --git 
a/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CustomCamelContextConfiguration.java
 
b/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CustomCamelContextConfiguration.java
index 05b93dcb4f..54fb6aebc7 100644
--- 
a/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CustomCamelContextConfiguration.java
+++ 
b/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CustomCamelContextConfiguration.java
@@ -21,11 +21,11 @@ import 
org.apache.camel.test.junit5.CamelContextConfiguration;
 public final class CustomCamelContextConfiguration extends 
CamelContextConfiguration {
 
     CustomCamelContextConfiguration 
withCustomCamelContextSupplier(CamelContextSupplier camelContextSupplier) {
-        return 
(CustomCamelContextConfiguration)super.withCamelContextSupplier(camelContextSupplier);
+        return (CustomCamelContextConfiguration) 
super.withCamelContextSupplier(camelContextSupplier);
     }
 
     CustomCamelContextConfiguration withCustomPostProcessor(PostProcessor 
postProcessor) {
-        return 
(CustomCamelContextConfiguration)super.withPostProcessor(postProcessor);
+        return (CustomCamelContextConfiguration) 
super.withPostProcessor(postProcessor);
     }
 
     CustomCamelContextConfiguration withCustomRoutesSupplier(RoutesSupplier 
routesSupplier) {
diff --git 
a/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CustomTestExecutionConfiguration.java
 
b/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CustomTestExecutionConfiguration.java
index b2444e49a1..f07265f08f 100644
--- 
a/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CustomTestExecutionConfiguration.java
+++ 
b/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/CustomTestExecutionConfiguration.java
@@ -25,6 +25,6 @@ public final class CustomTestExecutionConfiguration extends 
TestExecutionConfigu
     }
 
     CustomTestExecutionConfiguration 
withCustomCreateCamelContextPerClass(boolean createCamelContextPerClass) {
-        return 
(CustomTestExecutionConfiguration)super.withCreateCamelContextPerClass(createCamelContextPerClass);
+        return (CustomTestExecutionConfiguration) 
super.withCreateCamelContextPerClass(createCamelContextPerClass);
     }
 }
diff --git 
a/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/TransientCamelContextNotStoppingManager.java
 
b/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/TransientCamelContextNotStoppingManager.java
index 89219b9842..bca3d43bfe 100644
--- 
a/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/TransientCamelContextNotStoppingManager.java
+++ 
b/test-framework/junit5/src/main/java/org/apache/camel/quarkus/test/TransientCamelContextNotStoppingManager.java
@@ -26,7 +26,7 @@ import 
org.apache.camel.test.junit5.TransientCamelContextManager;
 public class TransientCamelContextNotStoppingManager extends 
TransientCamelContextManager {
 
     public TransientCamelContextNotStoppingManager(TestExecutionConfiguration 
testConfigurationBuilder,
-           CamelContextConfiguration camelContextConfiguration) {
+            CamelContextConfiguration camelContextConfiguration) {
         super(testConfigurationBuilder, camelContextConfiguration);
     }
 
diff --git 
a/test-framework/junit5/src/test/java/org/apache/camel/quarkus/test/junit5/patterns/DebugNoLazyTypeConverterTest.java
 
b/test-framework/junit5/src/test/java/org/apache/camel/quarkus/test/junit5/patterns/DebugNoLazyTypeConverterTest.java
index d9ae75dc0c..f916f27760 100644
--- 
a/test-framework/junit5/src/test/java/org/apache/camel/quarkus/test/junit5/patterns/DebugNoLazyTypeConverterTest.java
+++ 
b/test-framework/junit5/src/test/java/org/apache/camel/quarkus/test/junit5/patterns/DebugNoLazyTypeConverterTest.java
@@ -46,6 +46,7 @@ public class DebugNoLazyTypeConverterTest extends 
CamelQuarkusTestSupport {
         testDebugBreakpoint = new TestDebugBreakpoint();
         return testDebugBreakpoint;
     }
+
     // START SNIPPET: e1
     @Override
     public boolean isUseDebugger() {

Reply via email to