Fix compilation of ShieldIndexSearcherWrapperUnitTests.

The break was introduced in elastic/elasticsearchelastic/elasticsearch#14896.

Original commit: elastic/x-pack-elasticsearch@07810b2d2b
This commit is contained in:
Adrien Grand 2015-11-24 09:28:28 +01:00
parent e1319be504
commit f8ab6f0fb5
1 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ import org.elasticsearch.index.mapper.internal.ParentFieldMapper;
import org.elasticsearch.index.shard.IndexShard;
import org.elasticsearch.index.shard.ShardId;
import org.elasticsearch.index.similarity.SimilarityService;
import org.elasticsearch.indices.IndicesModule;
import org.elasticsearch.indices.IndicesWarmer;
import org.elasticsearch.search.aggregations.LeafBucketCollector;
import org.elasticsearch.shield.authz.InternalAuthorizationService;
@ -67,7 +68,7 @@ public class ShieldIndexSearcherWrapperUnitTests extends ESTestCase {
AnalysisService analysisService = new AnalysisService(indexSettings, Collections.emptyMap(), Collections.emptyMap(),
Collections.emptyMap(), Collections.emptyMap());
SimilarityService similarityService = new SimilarityService(indexSettings, Collections.emptyMap());
mapperService = new MapperService(indexSettings, analysisService, similarityService);
mapperService = new MapperService(indexSettings, analysisService, similarityService, new IndicesModule().getMapperRegistry());
ShardId shardId = new ShardId(index, 0);
licenseState = mock(ShieldLicenseState.class);