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/11 13:14:44 UTC
[GitHub] [camel-spring-boot] davsclaus commented on a diff in pull request #682: Fixed Flaky Test Caused by JSON permutations
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org