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

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

commit 1044e6781b9444d4c7a42f29ae2b78284db17ede
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Wed May 22 13:02:10 2024 +0200

    CAMEL-20785: avoid using JUnit's assertions in setup code
---
 .../src/main/java/org/apache/camel/test/junit5/CamelTestSupport.java  | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 
a/components/camel-test/camel-test-junit5/src/main/java/org/apache/camel/test/junit5/CamelTestSupport.java
 
b/components/camel-test/camel-test-junit5/src/main/java/org/apache/camel/test/junit5/CamelTestSupport.java
index db1d81cd94a..54c014c1537 100644
--- 
a/components/camel-test/camel-test-junit5/src/main/java/org/apache/camel/test/junit5/CamelTestSupport.java
+++ 
b/components/camel-test/camel-test-junit5/src/main/java/org/apache/camel/test/junit5/CamelTestSupport.java
@@ -430,7 +430,7 @@ public abstract class CamelTestSupport
         context = (ModelCamelContext) createCamelContext();
         THREAD_CAMEL_CONTEXT.set(context);
 
-        assertNotNull(context, "No context found!");
+        assert context != null : "No context found!";
 
         // add custom beans
         bindToRegistry(context.getRegistry());
@@ -465,8 +465,6 @@ public abstract class CamelTestSupport
             LOG.debug("Using route builder from the created context: {}", 
context);
         }
         LOG.debug("Routing Rules are: {}", context.getRoutes());
-
-        assertValidContext(context);
     }
 
     private void setupTemplates() {

Reply via email to