Merged 5.2.N (5.2.1) to HEAD (5.2)

130928 amorarasu: 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/HEAD/root@132209 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-11-03 13:30:06 +00:00
parent 491b6f2f21
commit 309ce5b5ef
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.");
}
}