SEARCH-171:Search api default language should be Afts

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130565 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gethin James
2016-09-12 12:30:26 +00:00
parent c69160a717
commit 7e85c8ac0f
2 changed files with 5 additions and 22 deletions

View File

@@ -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);