What are the customization options for assertion errors in 2.x? I saw that the 1.x series had some inline options and that this feature is no longer available in 2.x. Googling has not turned up an alternative solution for 2.x so here I am.What's my use case? This one...@Testpublic void VerifyGoldMasterContentForListOfFoo() throws IOException{OAuth2RestTemplate restTemplate = anOauth2RestTemplateBuilder().withValidClientCredentials().build();String response = restTemplate.getForObject(BASE_URL, String.class);JSONObject jsonObject = JSONObject.fromObject(response);String goldMasterResponse = getFileContent("/gold-master-responses/list-of-foo.json");assert(jsonObject).equals(JSONObject.fromObject(goldMasterResponse));}The error response if the two JSONObjects are not-equal is...java.lang.AssertionErrorat com.foo.morpheus.functional.ApiGoldMasterTest.VerifyGoldMasterContentForListOfExercisers(ApiGoldMasterTest.java:69)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)...I'm happy with the equality algorithm of the JSONObject, I just want a better error-message when equality fails in an assertion (an error message that includes the content of the JSONObject).Suggestions?Thanks!Gary--
You received this message because you are subscribed to the Google Groups "easytesting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to easytesting...@googlegroups.com.
To post to this group, send email to easyt...@googlegroups.com.
Visit this group at http://groups.google.com/group/easytesting?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.