blob: 82f6c097dd8b0e2e68925b92b51cac23d2358d3c (
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
|
package com.yahoo.metrics.simple;
import org.junit.Test;
import java.util.Collections;
import java.util.HashMap;
import static org.junit.Assert.assertEquals;
/**
* @author bratseth
*/
public class PointTest {
@Test
public void testPointEquality() {
Point a = new Point(Collections.emptyMap());
Point b = new Point(new HashMap<>(0));
assertEquals(a.hashCode(), b.hashCode());
assertEquals(a, b);
}
}
|