You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2026/01/27 09:55:27 UTC
(camel) 41/50: (chores): ensure usage of text blocks camel-jq
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 3268af4062c984667808d8b673cfa63dbc91ca64
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Jan 26 20:34:28 2026 +0000
(chores): ensure usage of text blocks camel-jq
---
.../apache/camel/language/jq/JqFilterGETest.java | 27 ++++++++++++----------
1 file changed, 15 insertions(+), 12 deletions(-)
diff --git a/components/camel-jq/src/test/java/org/apache/camel/language/jq/JqFilterGETest.java b/components/camel-jq/src/test/java/org/apache/camel/language/jq/JqFilterGETest.java
index 5d840e533a6a..2689225f8f42 100644
--- a/components/camel-jq/src/test/java/org/apache/camel/language/jq/JqFilterGETest.java
+++ b/components/camel-jq/src/test/java/org/apache/camel/language/jq/JqFilterGETest.java
@@ -55,20 +55,23 @@ public class JqFilterGETest extends JqTestSupport {
@Test
public void testFilterStringPayload() throws Exception {
- String b0 = "{\n"
- + " \"branch\": \"BRANCH0\",\n"
- + " \"amount\": 1234\n"
- + "}";
+ String b0 = """
+ {
+ "branch": "BRANCH0",
+ "amount": 1234
+ }""";
- String b1 = "{\n"
- + " \"branch\": \"BRANCH1\",\n"
- + " \"amount\": 499\n"
- + "}";
+ String b1 = """
+ {
+ "branch": "BRANCH1",
+ "amount": 499
+ }""";
- String b2 = "{\n"
- + " \"branch\": \"BRANCH2\",\n"
- + " \"amount\": 4444\n"
- + "}";
+ String b2 = """
+ {
+ "branch": "BRANCH2",
+ "amount": 4444
+ }""";
getMockEndpoint("mock:result").expectedMessageCount(2);
getMockEndpoint("mock:result").message(0).body().isEqualTo(b0);