We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b3389d commit 247f164Copy full SHA for 247f164
src/test/java/com/fasterxml/jackson/databind/node/WithPathTest.java
@@ -2,6 +2,7 @@
2
3
import com.fasterxml.jackson.core.JsonPointer;
4
import com.fasterxml.jackson.databind.*;
5
+import com.fasterxml.jackson.databind.exc.JsonNodeException;
6
7
// for [databuind#1980] implementation
8
public class WithPathTest extends BaseMapTest
@@ -50,7 +51,7 @@ public void testObjectPathWithReplace() throws Exception
50
51
try {
52
root.withObject(abPath);
53
fail("Should not pass");
- } catch (UnsupportedOperationException e) {
54
+ } catch (JsonNodeException e) {
55
verifyException(e, "cannot traverse non-container");
56
}
57
0 commit comments