mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Made VanillaContext more defensive and error checking
This commit is contained in:
@@ -592,9 +592,12 @@ public class ChronicleMapTest {
|
||||
CharSequence userCS = getUserCharSequence(i);
|
||||
|
||||
if (j > 1) {
|
||||
assertNotNull(userCS.toString(), map.getUsing(userCS, value));
|
||||
LongValue v = map.getUsing(userCS, value);
|
||||
assertNotNull(userCS.toString(), v);
|
||||
assertTrue(userCS.toString(), v == value);
|
||||
} else {
|
||||
map.acquireUsing(userCS, value);
|
||||
LongValue v = map.acquireUsing(userCS, value);
|
||||
assertTrue(userCS.toString(), v == value);
|
||||
}
|
||||
if (i >= 1)
|
||||
assertTrue(userCS.toString(), map.containsKey(getUserCharSequence(1)));
|
||||
|
||||
Reference in New Issue
Block a user