mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
SEARCH-166:Filter queries should not be supported with CMIS QL
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130507 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -312,7 +312,18 @@ public class SearchMapperTests
|
||||
assertEquals("hedgehog" ,searchParameters.getFilterQueries().get(0));
|
||||
assertEquals("king" ,searchParameters.getFilterQueries().get(1));
|
||||
|
||||
//tags aren't used at the moment
|
||||
searchParameters = new SearchParameters();
|
||||
searchParameters.setLanguage(SearchService.LANGUAGE_CMIS_ALFRESCO);
|
||||
try
|
||||
{
|
||||
searchMapper.fromFilterQuery(searchParameters, Arrays.asList(new FilterQuery("hedgehog", null)));
|
||||
fail();
|
||||
}
|
||||
catch (InvalidArgumentException iae)
|
||||
{
|
||||
//You can't specify FilterQuery when using the CMIS language
|
||||
assertNotNull(iae);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user