[Test] Expose AbstractPercentilesTestCase.randomPercents()
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++) {
