Skip to content

Commit 247f164

Browse files
committed
...
1 parent 2b3389d commit 247f164

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/fasterxml/jackson/databind/node/WithPathTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.fasterxml.jackson.core.JsonPointer;
44
import com.fasterxml.jackson.databind.*;
5+
import com.fasterxml.jackson.databind.exc.JsonNodeException;
56

67
// for [databuind#1980] implementation
78
public class WithPathTest extends BaseMapTest
@@ -50,7 +51,7 @@ public void testObjectPathWithReplace() throws Exception
5051
try {
5152
root.withObject(abPath);
5253
fail("Should not pass");
53-
} catch (UnsupportedOperationException e) {
54+
} catch (JsonNodeException e) {
5455
verifyException(e, "cannot traverse non-container");
5556
}
5657

0 commit comments

Comments
 (0)