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 840193e01dbc1143739b946e9c82763be8305884
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Mon Jan 26 20:34:08 2026 +0000

    (chores): ensure usage of text blocks camel-elasticsearch
---
 .../ElasticsearchGetSearchDeleteExistsUpdateIT.java      | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git 
a/components/camel-elasticsearch/src/test/java/org/apache/camel/component/es/integration/ElasticsearchGetSearchDeleteExistsUpdateIT.java
 
b/components/camel-elasticsearch/src/test/java/org/apache/camel/component/es/integration/ElasticsearchGetSearchDeleteExistsUpdateIT.java
index 2adcbeb1a5ca..b2ef48006247 100644
--- 
a/components/camel-elasticsearch/src/test/java/org/apache/camel/component/es/integration/ElasticsearchGetSearchDeleteExistsUpdateIT.java
+++ 
b/components/camel-elasticsearch/src/test/java/org/apache/camel/component/es/integration/ElasticsearchGetSearchDeleteExistsUpdateIT.java
@@ -319,9 +319,11 @@ class ElasticsearchGetSearchDeleteExistsUpdateIT extends 
ElasticsearchTestSuppor
         template.requestBodyAndHeaders("direct:start", List.of(map1, map2), 
headers, String.class);
 
         // No match
-        String query = "{\n"
-                       + "    \"query\" : { \"match\" : { 
\"testSearchWithStringQuery1\" : \"bar\" }}\n"
-                       + "}\n";
+        String query = """
+                {
+                    "query" : { "match" : { "testSearchWithStringQuery1" : 
"bar" }}
+                }
+                """;
 
         HitsMetadata<?> response = template.requestBody("direct:search", 
query, HitsMetadata.class);
         assertNotNull(response, "response should not be null");
@@ -329,9 +331,11 @@ class ElasticsearchGetSearchDeleteExistsUpdateIT extends 
ElasticsearchTestSuppor
         assertEquals(0, response.total().value(), "response hits should be == 
0");
 
         // Match
-        String q = "{\n"
-                   + "    \"query\" : { \"match\" : { 
\"testSearchWithStringQuery1\" : \"foo\" }}\n"
-                   + "}\n";
+        String q = """
+                {
+                    "query" : { "match" : { "testSearchWithStringQuery1" : 
"foo" }}
+                }
+                """;
         // the result may see stale data so use Awaitility
         Awaitility.await().atMost(10, TimeUnit.SECONDS).untilAsserted(() -> {
             HitsMetadata<?> resp = template.requestBody("direct:search", q, 
HitsMetadata.class);

Reply via email to