aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/test/java/com/yahoo/metrics/simple/PointTest.java
blob: e6cb70db07a4ff2371d1b033393369a5854883ed (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.metrics.simple;

import org.junit.jupiter.api.Test;

import java.util.Collections;
import java.util.HashMap;

import static org.junit.jupiter.api.Assertions.assertEquals;

/**
 * @author bratseth
 */
public class PointTest {

    @Test
    void testPointEquality() {
        Point a = new Point(Collections.emptyMap());
        Point b = new Point(new HashMap<>(0));
        assertEquals(a.hashCode(), b.hashCode());
        assertEquals(a, b);
    }
    
}