Skip to content

Commit

Permalink
Simplified query strings
Browse files Browse the repository at this point in the history
  • Loading branch information
bratseth committed Dec 3, 2020
1 parent f0ef833 commit 1ea3430
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void testValidation() {
new QueryValidator().search(new Query("?query=mystring:foo"), execution);

try {
new QueryValidator().search(new Query("?query=sddocname%3Aproduct%20lfmModel25KeysV0%3A9%2A%20mytensor1%3A%3E0"), execution);
new QueryValidator().search(new Query("?query=mytensor1:foo"), execution);
fail("Expected validation error");
}
catch (IllegalArgumentException e) {
Expand All @@ -39,7 +39,7 @@ public void testValidation() {
}

try {
new QueryValidator().search(new Query("?query=sddocname%3Aproduct%20lfmModel25KeysV0%3A9%2A%20mytensor2%3A%3E0"), execution);
new QueryValidator().search(new Query("?query=mytensor2:foo"), execution);
fail("Expected validation error");
}
catch (IllegalArgumentException e) {
Expand Down

0 comments on commit 1ea3430

Please sign in to comment.