Slackbot
02/08/2023, 5:16 PMAaron
02/08/2023, 5:18 PMjson-unit.any-string
?Roman Brühlmann
02/08/2023, 5:18 PMAaron
02/08/2023, 5:19 PMRoman Brühlmann
02/08/2023, 5:20 PMAaron
02/08/2023, 5:22 PMignoreExtraElements
flag to just check for those attributes. For example:
// actual request body
{
"foo": "bar",
"baz": "bar"
}
...
.withRequestBody(equalToJson("{ \"foo\": \"bar\" }", true, true))
...
Would match, even though I haven’t provided a match for "baz"
Aaron
02/08/2023, 5:23 PMRoman Brühlmann
02/08/2023, 5:26 PM