You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2022/10/13 09:37:46 UTC

[camel-quarkus] 04/07: Fix assertion invocation in core extension tests

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

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

commit 9461f314ce3f9e0faccc18fa288e38a2defa8721
Author: Tomas Turek <tt...@redhat.com>
AuthorDate: Wed Oct 12 14:20:10 2022 +0200

    Fix assertion invocation in core extension tests
---
 .../camel/quarkus/core/deployment/CamelContextCustomizerTest.java       | 2 +-
 .../camel/quarkus/core/deployment/CamelContextDefaultStrategyTest.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/extensions-core/core/deployment/src/test/java/org/apache/camel/quarkus/core/deployment/CamelContextCustomizerTest.java b/extensions-core/core/deployment/src/test/java/org/apache/camel/quarkus/core/deployment/CamelContextCustomizerTest.java
index 69f04c3ccc..c2a93f9766 100644
--- a/extensions-core/core/deployment/src/test/java/org/apache/camel/quarkus/core/deployment/CamelContextCustomizerTest.java
+++ b/extensions-core/core/deployment/src/test/java/org/apache/camel/quarkus/core/deployment/CamelContextCustomizerTest.java
@@ -69,6 +69,6 @@ public class CamelContextCustomizerTest {
 
     @Test
     public void testRestConfiguration() {
-        assertThat(camelContext.getRestConfiguration().getApiContextPath().equals("/example"));
+        assertThat(camelContext.getRestConfiguration().getApiContextPath()).isEqualTo("/example");
     }
 }
diff --git a/extensions-core/core/deployment/src/test/java/org/apache/camel/quarkus/core/deployment/CamelContextDefaultStrategyTest.java b/extensions-core/core/deployment/src/test/java/org/apache/camel/quarkus/core/deployment/CamelContextDefaultStrategyTest.java
index 8a50011289..529809ca5d 100644
--- a/extensions-core/core/deployment/src/test/java/org/apache/camel/quarkus/core/deployment/CamelContextDefaultStrategyTest.java
+++ b/extensions-core/core/deployment/src/test/java/org/apache/camel/quarkus/core/deployment/CamelContextDefaultStrategyTest.java
@@ -35,6 +35,6 @@ public class CamelContextDefaultStrategyTest {
 
     @Test
     public void testRestConfiguration() {
-        assertThat(camelContext.getShutdownStrategy() instanceof DefaultShutdownStrategy);
+        assertThat(camelContext.getShutdownStrategy() instanceof DefaultShutdownStrategy).isTrue();
     }
 }