We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1bf677 commit ad576e9Copy full SHA for ad576e9
1 file changed
src/test/java/com/github/fge/jsonpatch/JsonPathParserTest.java
@@ -2,8 +2,7 @@
2
3
import org.testng.annotations.Test;
4
5
-import static org.assertj.core.api.Assertions.assertThatThrownBy;
6
-import static org.testng.Assert.*;
+import static org.testng.Assert.assertEquals;
7
8
public class JsonPathParserTest {
9
@@ -52,4 +51,10 @@ public void shouldThrowExceptionWhenDoubleSlashesInJsonPointerPath() throws Json
52
51
String filterQuery = "/characteristic/0//age";
53
JsonPathParser.tmfStringToJsonPath(filterQuery);
54
}
+
55
+ @Test(expectedExceptions = JsonPatchException.class)
56
+ public void shouldThrowExceptionWhenQuestionMarkInJsonPointerPath() throws JsonPatchException {
57
+ String filterQuery = "/characteristic/0/age?";
58
+ JsonPathParser.tmfStringToJsonPath(filterQuery);
59
+ }
60
0 commit comments