|
|
|
@ -78,6 +78,13 @@ public class SplitPathFragmentsTest {
|
|
|
|
|
assertPath("$..book[ ?(@.price<10)]", hasItems("$", "..", "book", "[?(@.price<10)]")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void dot_ending_ignored() throws Exception { |
|
|
|
|
|
|
|
|
|
assertPath("$..book['something'].", hasItems("$", "..", "something")); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
public void invalid_path_throws_exception() throws Exception { |
|
|
|
|
assertPathInvalid("$...*"); |
|
|
|
|