BUG-7464: Split TrieMap into read-only and read-write
[yangtools.git] / third-party / triemap / src / test / java / org / opendaylight / yangtools / triemap / TestConcurrentMapPutIfAbsent.java
index 1eb6f2caccda5a0a19f851c4eeee7b691e073d6a..c8cbcb5c7b162e829388dc2ca4a00dff73c846f5 100644 (file)
@@ -28,7 +28,7 @@ public class TestConcurrentMapPutIfAbsent {
 
     @Test
     public void testConcurrentMapPutIfAbsent () {
-        final ConcurrentMap<Object, Object> map = new TrieMap<>();
+        final ConcurrentMap<Object, Object> map = TrieMap.create();
 
         for (int i = 0; i < COUNT; i++) {
             assertNull(map.putIfAbsent (i, i));
@@ -46,7 +46,7 @@ public class TestConcurrentMapPutIfAbsent {
         final ZeroHashInt v2 = new ZeroHashInt(5);
         final ZeroHashInt v3 = new ZeroHashInt(6);
 
-        final Map<ZeroHashInt, ZeroHashInt> map = new TrieMap<>();
+        final Map<ZeroHashInt, ZeroHashInt> map = TrieMap.create();
         // Pre-populate an LNode
         assertNull(map.putIfAbsent(k1, v1));
         assertNull(map.putIfAbsent(k2, v2));