File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/test/java/com/github/fge/jsonpatch Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import org .testng .annotations .Test ;
4
4
5
- import static org .assertj .core .api .Assertions .assertThatThrownBy ;
6
- import static org .testng .Assert .*;
5
+ import static org .testng .Assert .assertEquals ;
7
6
8
7
public class JsonPathParserTest {
9
8
@@ -52,4 +51,10 @@ public void shouldThrowExceptionWhenDoubleSlashesInJsonPointerPath() throws Json
52
51
String filterQuery = "/characteristic/0//age" ;
53
52
JsonPathParser .tmfStringToJsonPath (filterQuery );
54
53
}
54
+
55
+ @ Test (expectedExceptions = JsonPatchException .class )
56
+ public void shouldThrowExceptionWhenQuestionMarkInJsonPointerPath () throws JsonPatchException {
57
+ String filterQuery = "/characteristic/0/age?" ;
58
+ JsonPathParser .tmfStringToJsonPath (filterQuery );
59
+ }
55
60
}
You can’t perform that action at this time.
0 commit comments