blob: c5be6830fcb3ff4e755121cbf3e182148fb23e92 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package com.yahoo.metrics.simple.jdisc;
import com.yahoo.container.jdisc.state.MetricDimensions;
import com.yahoo.metrics.simple.Point;
import org.junit.Test;
import java.util.Collections;
import java.util.HashMap;
import static org.junit.Assert.assertEquals;
/**
* @author bratseth
*/
public class SnapshotConverterTest {
@Test
public void testConversion() {
MetricDimensions a = SnapshotConverter.convert(new Point(Collections.emptyMap()));
MetricDimensions b = SnapshotConverter.convert(new Point(new HashMap<>(0)));
assertEquals(a.hashCode(), b.hashCode());
assertEquals(a, b);
}
}
|