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 9f663870a56b6f92877aa1f6e6022f6cb06579cd Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Mon Jan 26 19:59:52 2026 +0000 (chores): ensure usage of text blocks components/camel-aws/camel-aws-xray --- .../camel/component/aws/xray/json/JsonTest.java | 41 +++++++++++----------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/components/camel-aws/camel-aws-xray/src/test/java/org/apache/camel/component/aws/xray/json/JsonTest.java b/components/camel-aws/camel-aws-xray/src/test/java/org/apache/camel/component/aws/xray/json/JsonTest.java index 0ae09b6b1db7..843d2f36547d 100644 --- a/components/camel-aws/camel-aws-xray/src/test/java/org/apache/camel/component/aws/xray/json/JsonTest.java +++ b/components/camel-aws/camel-aws-xray/src/test/java/org/apache/camel/component/aws/xray/json/JsonTest.java @@ -28,26 +28,27 @@ public class JsonTest { @Test public void testJsonParse() { - JsonStructure json = JsonParser.parse("{\n" - + " \"test\": \"some string\",\n" - + " \"otherKey\": true,\n" - + " \"nextKey\": 1234,\n" - + " \"doubleKey\": 1234.567,\n" - + " \"subElement\": {\n" - + " \"subKey\": \"some other string\",\n" - + " \"complexString\": \"String with JSON syntax elements like .,\\\" { or }\"\n" - + " },\n" - + " \"arrayElement\": [\n" - + " {\n" - + " \"id\": 1,\n" - + " \"name\": \"test1\"\n" - + " },\n" - + " {\n" - + " \"id\": 2,\n" - + " \"name\": \"test2\"\n" - + " }\n" - + " ]\n" - + "}"); + JsonStructure json = JsonParser.parse(""" + { + "test": "some string", + "otherKey": true, + "nextKey": 1234, + "doubleKey": 1234.567, + "subElement": { + "subKey": "some other string", + "complexString": "String with JSON syntax elements like .,\\" { or }" + }, + "arrayElement": [ + { + "id": 1, + "name": "test1" + }, + { + "id": 2, + "name": "test2" + } + ] + }"""); assertThat(json, is(notNullValue())); assertThat(json, is(instanceOf(JsonObject.class)));
