mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Optimized generalized data value generation ser/deser, when Byteable (i. e. direct impl) is given
This commit is contained in:
@@ -1483,7 +1483,7 @@ public class ChronicleMapTest {
|
||||
}
|
||||
|
||||
|
||||
@Test(expected = IllegalStateException.class)
|
||||
@Test
|
||||
public void testPutLongValue() throws IOException {
|
||||
final ChronicleMapBuilder<CharSequence, LongValue> builder = ChronicleMapBuilder
|
||||
.of(CharSequence.class, LongValue.class)
|
||||
@@ -1493,7 +1493,14 @@ public class ChronicleMapTest {
|
||||
final ChronicleMap<CharSequence, LongValue> map = builder.create();
|
||||
|
||||
LongValue value = nativeLongValue();
|
||||
map.put("x", value);
|
||||
try {
|
||||
map.put("x", value);
|
||||
} catch (IllegalStateException | NullPointerException e) {
|
||||
// ok
|
||||
return;
|
||||
}
|
||||
throw new AssertionError("Should throw either IllegalStateException or " +
|
||||
"NullPointerException, but succeed");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user