|
|
@ -72,6 +72,7 @@ public class FilterCompilerTest { |
|
|
|
assertInvalidPathException("[?(@ == 'foo )]"); |
|
|
|
assertInvalidPathException("[?(@ == 'foo )]"); |
|
|
|
assertInvalidPathException("[?(@ == 1' )]"); |
|
|
|
assertInvalidPathException("[?(@ == 1' )]"); |
|
|
|
assertInvalidPathException("[?(@.foo bar == 1)]"); |
|
|
|
assertInvalidPathException("[?(@.foo bar == 1)]"); |
|
|
|
|
|
|
|
assertInvalidPathException("[?(@.i == 5 @.i == 8)]"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -80,7 +81,7 @@ public class FilterCompilerTest { |
|
|
|
compile(filter); |
|
|
|
compile(filter); |
|
|
|
throw new AssertionError("Expected " + filter + " to throw InvalidPathException"); |
|
|
|
throw new AssertionError("Expected " + filter + " to throw InvalidPathException"); |
|
|
|
} catch (InvalidPathException e){ |
|
|
|
} catch (InvalidPathException e){ |
|
|
|
//e.printStackTrace();
|
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|