mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-265 test for - Chronicle Maps with Identical char[] values are not equal
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user