summaryrefslogtreecommitdiffstats
path: root/simplemetrics/src/test/java/com/yahoo/metrics/simple/MetricsTest.java
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahoo-inc.com>2016-11-08 11:56:08 +0100
committerArne H Juul <arnej@yahoo-inc.com>2016-11-08 11:56:08 +0100
commitbc148a328e3ac237c02ae6fb6f890c40a7419103 (patch)
tree85f67a4a527fae2f61552d326685c6140eaf14de /simplemetrics/src/test/java/com/yahoo/metrics/simple/MetricsTest.java
parent407a8f28eb5ddfcf1345149fe52882496e71943b (diff)
avoid keeping null Point around, use emptyPoint instead
Diffstat (limited to 'simplemetrics/src/test/java/com/yahoo/metrics/simple/MetricsTest.java')
-rw-r--r--simplemetrics/src/test/java/com/yahoo/metrics/simple/MetricsTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/simplemetrics/src/test/java/com/yahoo/metrics/simple/MetricsTest.java b/simplemetrics/src/test/java/com/yahoo/metrics/simple/MetricsTest.java
index d33e25cab01..d99dc4c40ff 100644
--- a/simplemetrics/src/test/java/com/yahoo/metrics/simple/MetricsTest.java
+++ b/simplemetrics/src/test/java/com/yahoo/metrics/simple/MetricsTest.java
@@ -44,7 +44,7 @@ public class MetricsTest extends UnitTestSetup {
Collection<Entry<Point, UntypedMetric>> values = s.getValuesForMetric(metricName);
assertEquals(1, values.size());
Entry<Point, UntypedMetric> value = values.iterator().next();
- assertNull(value.getKey());
+ assertEquals(Point.emptyPoint(), value.getKey());
assertEquals(1.0d, value.getValue().getLast(), 0.0d); // using number exactly expressible as doubles
assertEquals(1L, value.getValue().getCount());
}