mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -1613,7 +1613,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)
|
||||
@@ -1623,7 +1623,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