HCOLL-265 test for - Chronicle Maps with Identical char[] values are not equal

This commit is contained in:
Rob Austin
2014-12-22 13:15:21 +00:00
parent cab02eb890
commit 0b765451a8
@@ -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<CharSequence, byte[]> builder = ChronicleMapBuilder.of(CharSequence.class, byte[].class);
try (final ChronicleMap<CharSequence, byte[]> map1 = builder.create()) {
map1.put("hello", value);
try (final ChronicleMap<CharSequence, byte[]> map2 = builder.create()) {
map2.put("hello", value);
assertEquals(map1, map2);
}
}
}
@Test
public void testSize() throws Exception {