Closed sdetweil closed 8 years ago
code used to call (in groovy)
Customization c = new Customization("/", null);
def CustomComparator mc = new CaseInsensitiveComparator(JSONCompareMode.LENIENT, c);
mc.setLogger(_logger);
JSONAssert.assertEquals(test_body,request_body, mc);
i have found and fixed this problem in the 1.3.0 release..
I am supporting wildcards (*) (to allow any data in that spot, in particular places in a json document.
I have one where the compare returns confusing info.
source content
model to compare to (the source looks good in the editor before save)
I should get a compare error for every place there is an * in the model.
but it appears we lost a pointer to the error for some reason
error returned (<-- with comments)
Assert matching failed [dcId=] <--- right, \ in model Expected: a JSON object <--- yes but none found <---- what???? ; [dcId=2622] <---- input is correct Unexpected: a JSON object <--- say what??
using version 1.2.3 jsonassert-1.2.3.jar