mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Merged HEAD (5.2) to 5.2.N (5.2.1)
126586 jkaabimofrad: Merged FILE-FOLDER-API (5.2.0) to HEAD (5.2) 124792 jvonka: RA-767: Queries API - min 3 alphanumeric chars in search 'term' (pending requirement review) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@126931 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -393,6 +393,16 @@ public class QueriesApiTest extends AbstractBaseApiTest
|
||||
params.put(Queries.PARAM_ROOT_NODE_ID, myFolderNodeId);
|
||||
getAll(URL_QUERIES_LSN, user1, paging, params, 400);
|
||||
|
||||
// -ve test - term too short
|
||||
params = new HashMap<>(1);
|
||||
params.put(Queries.PARAM_TERM, "ab");
|
||||
getAll(URL_QUERIES_LSN, user1, paging, params, 400);
|
||||
|
||||
// -ve test - term is still too short
|
||||
params = new HashMap<>(1);
|
||||
params.put(Queries.PARAM_TERM, " \"a b *\" ");
|
||||
getAll(URL_QUERIES_LSN, user1, paging, params, 400);
|
||||
|
||||
// -ve test - invalid sort field
|
||||
params = new HashMap<>(2);
|
||||
params.put(Queries.PARAM_TERM, testTerm);
|
||||
|
Reference in New Issue
Block a user