diff --git a/src/test/java/net/openhft/chronicle/map/ChronicleMapTest.java b/src/test/java/net/openhft/chronicle/map/ChronicleMapTest.java index 47c625e42..c5758b996 100755 --- a/src/test/java/net/openhft/chronicle/map/ChronicleMapTest.java +++ b/src/test/java/net/openhft/chronicle/map/ChronicleMapTest.java @@ -192,7 +192,7 @@ public class ChronicleMapTest { } } - @Ignore("HCOLL-265 Chronicle Maps with Identical char[] values are not equal") + @Ignore("HCOLL-265 Chronicle Maps with Identical byte[] & char[] values are not equal") @Test public void testEqualsCharArray() throws Exception { @@ -215,6 +215,29 @@ public class ChronicleMapTest { } + @Ignore("HCOLL-265 Chronicle Maps with Identical byte[] & char[] values are not equal") + @Test + public void testEqualsByteArray() throws Exception { + + byte[] value = new byte[5]; + Arrays.fill(value, (byte) 'X'); + + ChronicleMapBuilder builder = ChronicleMapBuilder.of(CharSequence.class, byte[].class); + + try (final ChronicleMap map1 = builder.create()) { + + map1.put("hello", value); + + try (final ChronicleMap map2 = builder.create()) { + map2.put("hello", value); + + assertEquals(map1, map2); + } + + } + } + + @Test public void testSize() throws Exception {