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:18 UTC
(camel) 32/50: (chores): ensure usage of text blocks camel-gson
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 e469390e398838f4868487e8bd2fe5a275e96716
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Jan 26 20:34:09 2026 +0000
(chores): ensure usage of text blocks camel-gson
---
.../apache/camel/component/gson/SpringGsonJsonDataFormatTest.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/components/camel-gson/src/test/java/org/apache/camel/component/gson/SpringGsonJsonDataFormatTest.java b/components/camel-gson/src/test/java/org/apache/camel/component/gson/SpringGsonJsonDataFormatTest.java
index 824b2013404f..b52af5e9a727 100644
--- a/components/camel-gson/src/test/java/org/apache/camel/component/gson/SpringGsonJsonDataFormatTest.java
+++ b/components/camel-gson/src/test/java/org/apache/camel/component/gson/SpringGsonJsonDataFormatTest.java
@@ -59,9 +59,10 @@ public class SpringGsonJsonDataFormatTest extends CamelSpringTestSupport {
Object marshalled = template.requestBody("direct:inPretty", in);
String marshalledAsString = context.getTypeConverter().convertTo(String.class, marshalled);
- String expected = "{\n"
- + " \"name\": \"Camel\""
- + "\n}";
+ String expected = """
+ {
+ "name": "Camel"
+ }""";
assertEquals(expected, marshalledAsString);
template.sendBody("direct:backPretty", marshalled);