diff --git a/x-pack/plugin/analytics/src/test/java/org/elasticsearch/xpack/analytics/mapper/HistogramFieldMapperTests.java b/x-pack/plugin/analytics/src/test/java/org/elasticsearch/xpack/analytics/mapper/HistogramFieldMapperTests.java index 61aa8d4efa0b1..502d7ea77ee90 100644 --- a/x-pack/plugin/analytics/src/test/java/org/elasticsearch/xpack/analytics/mapper/HistogramFieldMapperTests.java +++ b/x-pack/plugin/analytics/src/test/java/org/elasticsearch/xpack/analytics/mapper/HistogramFieldMapperTests.java @@ -18,7 +18,7 @@ import org.elasticsearch.plugins.Plugin; import org.elasticsearch.test.ESSingleNodeTestCase; import org.elasticsearch.xpack.analytics.AnalyticsPlugin; -import org.elasticsearch.xpack.core.XPackPlugin; +import org.elasticsearch.xpack.core.LocalStateCompositeXPackPlugin; import java.util.ArrayList; import java.util.Collection; @@ -502,7 +502,7 @@ public void testNegativeCount() throws Exception { protected Collection> getPlugins() { List> plugins = new ArrayList<>(super.getPlugins()); plugins.add(AnalyticsPlugin.class); - plugins.add(XPackPlugin.class); + plugins.add(LocalStateCompositeXPackPlugin.class); return plugins; } diff --git a/x-pack/plugin/analytics/src/test/java/org/elasticsearch/xpack/analytics/mapper/HistogramPercentileAggregationTests.java b/x-pack/plugin/analytics/src/test/java/org/elasticsearch/xpack/analytics/mapper/HistogramPercentileAggregationTests.java index ede7cc71f6ac8..463d6620af0cb 100644 --- a/x-pack/plugin/analytics/src/test/java/org/elasticsearch/xpack/analytics/mapper/HistogramPercentileAggregationTests.java +++ b/x-pack/plugin/analytics/src/test/java/org/elasticsearch/xpack/analytics/mapper/HistogramPercentileAggregationTests.java @@ -28,7 +28,7 @@ import org.elasticsearch.search.aggregations.metrics.TDigestState; import org.elasticsearch.test.ESSingleNodeTestCase; import org.elasticsearch.xpack.analytics.AnalyticsPlugin; -import org.elasticsearch.xpack.core.XPackPlugin; +import org.elasticsearch.xpack.core.LocalStateCompositeXPackPlugin; import java.util.ArrayList; import java.util.Collection; @@ -225,12 +225,11 @@ public void testTDigestHistogram() throws Exception { } } - @Override protected Collection> getPlugins() { List> plugins = new ArrayList<>(super.getPlugins()); plugins.add(AnalyticsPlugin.class); - plugins.add(XPackPlugin.class); + plugins.add(LocalStateCompositeXPackPlugin.class); return plugins; }