REPO-484: [REST API] Added more comprehensive tests for the 'where' predicate - covered most of the endpoints, except the workflow ones.

- More tests should be added in REPO-1249

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130928 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ancuta Morarasu
2016-09-27 12:03:34 +00:00
parent 114ce8b02c
commit f5a3fa3a3f
3 changed files with 310 additions and 3 deletions

View File

@@ -261,8 +261,8 @@ public class MapBasedQueryWalker extends WalkerCallbackAdapter
}
else if (negated)
{
// Throw error for the unsupported NOT operator only if the property was valid for comparison, show the more meaningful error first.
throw new InvalidArgumentException("NOT operator is not supported for " + WhereClauseParser.tokenNames[type] + " comparison.");
// Throw error for the unsupported negation only if the property was valid for comparison, show the more meaningful error first.
throw new InvalidArgumentException("Cannot use NOT for " + WhereClauseParser.tokenNames[type] + " comparison.");
}
}