diff --git a/protocol/src/test/java/com/zfoo/protocol/collection/ConcurrentHashMapTest.java b/protocol/src/test/java/com/zfoo/protocol/collection/ConcurrentHashMapTest.java index 32cfb53e5..f3953cede 100644 --- a/protocol/src/test/java/com/zfoo/protocol/collection/ConcurrentHashMapTest.java +++ b/protocol/src/test/java/com/zfoo/protocol/collection/ConcurrentHashMapTest.java @@ -28,7 +28,7 @@ public class ConcurrentHashMapTest { @Test public void equalsMapTest() { - var map = Map.of(1L, "a", 2L, "b", 3L, "c"); + var map = Map.of(1L, "a", 2L, "b", 3L, "c", 4L, "d", 5L, "e", Long.MAX_VALUE, "max", Long.MIN_VALUE, "min"); var concurrentHashMapLongObject = new ConcurrentHashMapLongObject(); concurrentHashMapLongObject.putAll(map); @@ -40,7 +40,7 @@ public void equalsMapTest() { var copyOnWriteHashMapLongObject = new CopyOnWriteHashMapLongObject(); copyOnWriteHashMapLongObject.putAll(map); - Assert.assertEquals(map, concurrentHashMapLongObject); + Assert.assertEquals(map, copyOnWriteHashMapLongObject); } @Test