Skip to content

Commit

Permalink
Remove space in jsonpath
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglingsong committed May 23, 2019
1 parent 8d0722f commit 212e99d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -892,7 +892,7 @@ public boolean matches(Object o) {
@Test
public void testJsonPathFilterMatchRegexFlags() throws Exception {
JsonPathListener mockListener = mock(JsonPathListener.class);
surfer.configBuilder().bind("$.store.book[?(@.author =~ /tolkien/i)]", mockListener) // we assume other flags work too
surfer.configBuilder().bind("$.store.book[?(@.author=~/tolkien/i)]", mockListener) // we assume other flags work too
.buildAndSurf(read("sample_filter.json"));
verify(mockListener, times(1)).onValue(argThat(new CustomMatcher<Object>("Test filter") {
@Override
Expand Down

0 comments on commit 212e99d

Please sign in to comment.