BUG-7464: Split TrieMap into read-only and read-write
[yangtools.git] / third-party / triemap / src / test / java / org / opendaylight / yangtools / triemap / TestConcurrentMapReplace.java
index 6f47372e1921cb46558ce8bad41cf0ed3d3baad3..6299ba063d705de8526dad03a5d6ea17bb56fc2f 100644 (file)
@@ -29,7 +29,7 @@ public class TestConcurrentMapReplace {
 
     @Test
     public void testConcurrentMapReplace () {
-        final ConcurrentMap<Integer, Object> map = new TrieMap<>();
+        final ConcurrentMap<Integer, Object> map = TrieMap.create();
 
         for (int i = 0; i < COUNT; i++) {
             assertNull(map.replace(i, "lol"));
@@ -53,7 +53,7 @@ public class TestConcurrentMapReplace {
         final ZeroHashInt v3dup = new ZeroHashInt(6);
         final ZeroHashInt k4 = new ZeroHashInt(7);
 
-        final Map<ZeroHashInt, ZeroHashInt> map = new TrieMap<>();
+        final Map<ZeroHashInt, ZeroHashInt> map = TrieMap.create();
         assertNull(map.put(k3, v3));
 
         // First check for SNode