davsclaus commented on code in PR #682:
URL: https://github.com/apache/camel-spring-boot/pull/682#discussion_r1045232075


##########
components-starter/camel-gson-starter/src/test/java/org/apache/camel/component/gson/springboot/GsonMarshalExclusionTest.java:
##########
@@ -79,7 +79,9 @@ public void testMarshalAndUnmarshalPojoWithExclusion() throws 
Exception {
 
         Object marshalled = template.requestBody("direct:inPojoExcludeWeight", 
in);
         String marshalledAsString = 
context.getTypeConverter().convertTo(String.class, marshalled);
-        assertEquals("{\"age\":30,\"height\":190}", marshalledAsString);
+        assertTrue(marshalledAsString.contains("\"height\":190"));
+        assertTrue(marshalledAsString.contains("\"age\":30"));
+               assertFalse(marshalledAsString.contains("\"weight\":70"));

Review Comment:
   Fix indent so the code is aligned like the code above



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to