You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I'm using jctools 2.1.2.
I found that when I try to replace a value in NBHM for a key that doesn't exit, I get AssertionError. Here is the sample test:
@Test
public void replaceTest() {
final ConcurrentMap<String, String> map = new NonBlockingHashMap<>();
assertNull(map.replace(UUID.randomUUID().toString(), UUID.randomUUID().toString()));
assertFalse(map.replace(UUID.randomUUID().toString(), UUID.randomUUID().toString(), UUID.randomUUID().toString()));
}
The test works fine when I replace NBHM with ConcurrentHashMap.
The text was updated successfully, but these errors were encountered:
fvlad
changed the title
AssertionError when replacing missing value
AssertionError when replacing missing key
May 18, 2019
Hi. I'm using jctools 2.1.2.
I found that when I try to replace a value in NBHM for a key that doesn't exit, I get AssertionError. Here is the sample test:
The test works fine when I replace NBHM with ConcurrentHashMap.
The text was updated successfully, but these errors were encountered: