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

130610 amorarasu: REPO-484: [REST API] 400 error for unsupported NOT operator in the 'where' predicate.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132152 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-11-03 13:12:44 +00:00
parent dd91ce3629
commit 07fe704500
5 changed files with 85 additions and 77 deletions

View File

@@ -485,7 +485,7 @@ public class WhereTests implements RecognizedParamsExtractor
assertEquals(WhereClauseParser.PROPERTYVALUE, tree.getChild(1).getType());
QueryHelper.walk(theQuery, new WalkerCallbackAdapter(){
@Override
public void comparison(int comparisonType, String propertyName, String propertyValue) {
public void comparison(int comparisonType, String propertyName, String propertyValue, boolean negated) {
assertTrue("Property name should be "+propName,propName.equals(propertyName));
assertTrue(comparisonOperator == comparisonType);
assertTrue("Property value should be "+propVal,propVal.equals(propertyValue));