[Test] Expose AbstractPercentilesTestCase.randomPercents()

This commit is contained in:
Tanguy Leroux 2017-04-20 13:36:16 +02:00
parent 35946a13d0
commit c8fc30a999

View File

@ -19,7 +19,6 @@
package org.elasticsearch.search.aggregations.metrics.percentiles;
import org.elasticsearch.common.xcontent.XContentType;
import org.elasticsearch.search.DocValueFormat;
import org.elasticsearch.search.aggregations.InternalAggregation;
import org.elasticsearch.search.aggregations.InternalAggregationTestCase;
@ -71,7 +70,7 @@ public abstract class AbstractPercentilesTestCase<T extends InternalAggregation
}
}
private static double[] randomPercents() {
protected static double[] randomPercents() {
List<Double> randomCdfValues = randomSubsetOf(randomIntBetween(1, 7), 0.01d, 0.05d, 0.25d, 0.50d, 0.75d, 0.95d, 0.99d);
double[] percents = new double[randomCdfValues.size()];
for (int i = 0; i < randomCdfValues.size(); i++) {