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


The following commit(s) were added to refs/heads/main by this push:
     new ccbc43368a0 (chores) camel-consul: cleanup data conversion
ccbc43368a0 is described below

commit ccbc43368a07e707a2175e1493d1031fd27a47a5
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Fri Mar 24 15:08:53 2023 +0100

    (chores) camel-consul: cleanup data conversion
---
 .../apache/camel/component/consul/cloud/ConsulServiceDiscoveryIT.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-consul/src/test/java/org/apache/camel/component/consul/cloud/ConsulServiceDiscoveryIT.java
 
b/components/camel-consul/src/test/java/org/apache/camel/component/consul/cloud/ConsulServiceDiscoveryIT.java
index 4a283c43632..737b862f278 100644
--- 
a/components/camel-consul/src/test/java/org/apache/camel/component/consul/cloud/ConsulServiceDiscoveryIT.java
+++ 
b/components/camel-consul/src/test/java/org/apache/camel/component/consul/cloud/ConsulServiceDiscoveryIT.java
@@ -97,7 +97,8 @@ public class ConsulServiceDiscoveryIT extends 
ConsulTestSupport {
             Assertions.assertThat(service.getMetadata()).containsEntry("key1", 
"value1");
             Assertions.assertThat(service.getMetadata()).containsEntry("key2", 
"value2");
             
Assertions.assertThat(service.getMetadata()).containsEntry("meta-key", 
"meta-val");
-            Assertions.assertThat("" + 
service.getHealth().isHealthy()).isEqualTo(service.getMetadata().get("healthy"));
+            
Assertions.assertThat(Boolean.toString(service.getHealth().isHealthy()))
+                    .isEqualTo(service.getMetadata().get("healthy"));
         }
     }
 }

Reply via email to