diff options
author | Colin Goodheart-Smithe <colings86@users.noreply.github.com> | 2015-11-11 14:32:00 +0000 |
---|---|---|
committer | Colin Goodheart-Smithe <colings86@users.noreply.github.com> | 2015-12-21 09:34:05 +0000 |
commit | 6795a59f14573f343cb520c4f5f6d428ca9f84e0 (patch) | |
tree | 608dbb4dfbabae393eccdc8e3a7331c3f5c27649 /core/src/test/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsTests.java | |
parent | 4e008952b23b748a2c91e3a7e5830486060a44ed (diff) |
Aggregations Refactor: Refactor Stats and Extended_Stats Aggregations
Diffstat (limited to 'core/src/test/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsTests.java')
-rw-r--r-- | core/src/test/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsTests.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/core/src/test/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsTests.java b/core/src/test/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsTests.java new file mode 100644 index 0000000000..504254d392 --- /dev/null +++ b/core/src/test/java/org/elasticsearch/search/aggregations/metrics/ExtendedStatsTests.java @@ -0,0 +1,35 @@ +/* + * Licensed to Elasticsearch under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.elasticsearch.search.aggregations.metrics; + +import org.elasticsearch.search.aggregations.metrics.stats.extended.ExtendedStatsAggregator; + +public class ExtendedStatsTests extends AbstractNumericMetricTestCase<ExtendedStatsAggregator.Factory> { + + @Override + protected ExtendedStatsAggregator.Factory doCreateTestAggregatorFactory() { + ExtendedStatsAggregator.Factory factory = new ExtendedStatsAggregator.Factory("foo"); + if (randomBoolean()) { + factory.sigma(randomDoubleBetween(0.0, 10.0, true)); + } + return factory; + } + +} |