I'm trying to check if a field is not present, but none of these work:
JsonAssertion.assertThat("{}").field("targetId").isEmpty();
JsonAssertion.assertThat("{}").field("targetId").isNull();
They just result in:
com.jayway.jsonpath.PathNotFoundException: No results for path: $['targetId']
Is there a way?
I'm trying to check if a field is not present, but none of these work:
They just result in:
Is there a way?