You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/12/12 00:22:29 UTC

[GitHub] [camel-spring-boot] bmk15897 commented on a diff in pull request #682: Fixed Flaky Test Caused by JSON permutations

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


##########
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:
   Fixed. Apologies for the inconvenience. 



-- 
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-unsubscribe@camel.apache.org

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