davsclaus commented on code in PR #8875:
URL: https://github.com/apache/camel/pull/8875#discussion_r1044103999


##########
components/camel-gson/src/test/java/org/apache/camel/component/gson/GsonMarshalExclusionTest.java:
##########
@@ -43,7 +44,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:
   just run mvn install -P format to reformat



-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to