This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push: new 7ea2e1fb2f Fix assertion invocation in core extension tests 7ea2e1fb2f is described below commit 7ea2e1fb2f625d7962bf52304951e5093817fdc7 Author: Tomas Turek <ttu...@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(); } }