mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.N (5.2.1) to HEAD (5.2)
130565 gjames: SEARCH-171:Search api default language should be Afts git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132146 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -56,7 +56,6 @@ import org.alfresco.service.cmr.search.LimitBy;
|
||||
import org.alfresco.service.cmr.search.SearchParameters;
|
||||
import org.alfresco.service.cmr.search.SearchParameters.FieldFacet;
|
||||
import org.alfresco.service.cmr.search.SearchService;
|
||||
import org.codehaus.jackson.annotate.JsonProperty;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.Arrays;
|
||||
@@ -109,14 +108,9 @@ public class SearchMapperTests
|
||||
|
||||
Query q = new Query(null,"hello", null);
|
||||
|
||||
try
|
||||
{
|
||||
searchMapper.fromQuery(searchParameters, q);
|
||||
fail();
|
||||
} catch (IllegalArgumentException iae)
|
||||
{
|
||||
assertTrue(iae.getLocalizedMessage().contains("language is a mandatory parameter"));
|
||||
}
|
||||
searchMapper.fromQuery(searchParameters, q);
|
||||
//Default
|
||||
assertEquals(LANGUAGE_FTS_ALFRESCO, searchParameters.getLanguage());
|
||||
|
||||
q = new Query("world", "hello", null);
|
||||
|
||||
|
Reference in New Issue
Block a user