We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6aef53b commit c8ffb4bCopy full SHA for c8ffb4b
1 file changed
src/test/java/uk/org/webcompere/modelassert/json/ExamplesTest.java
@@ -541,4 +541,14 @@ void atPath_whenKeysAreMissingInTheActualThenObjectContainsFixesIt() {
541
.path("z").objectContains()
542
.isEqualTo("{z:{b:{d:false, c:true}}}");
543
}
544
+
545
+ @Test
546
+ void at_isCheckedEvenIfTreeComparisonSucceeds() {
547
+ assertThatThrownBy(() ->
548
+ assertJson("{foo: 42}")
549
+ .where().objectContains()
550
+ .at("/foo").isText()
551
+ .isEqualTo("{}"))
552
+ .isInstanceOf(AssertionFailedError.class);
553
+ }
554
0 commit comments