@Test void testNodeAbsent() { assertThatThrownBy(() -> assertThatJson("{\"test1\":2, \"test2\":1}").node("test2").isAbsent()) .hasMessage("Different value found in node \"test2\", expected: <node to be absent> but was: <1>."); }
@Test void shouldTreatNullAsAbsent() { assertThatJson("{\"a\":1, \"b\": null}").when(Option.TREATING_NULL_AS_ABSENT).node("b").isAbsent(); }
@Test void testNodeAbsentOk() { assertThatJson("{\"test1\":2, \"test2\":1}").node("test3").isAbsent(); }