BUG-7464: Split TrieMap into read-only and read-write
[yangtools.git] / third-party / triemap / src / test / java / org / opendaylight / yangtools / triemap / TestInsert.java
index bf3813b7f7a20ad034050f6c50f3b990dda31435..aefaf1d6ee72b49a1edf3f7e594bc98d41aa2800 100644 (file)
@@ -23,7 +23,7 @@ import org.junit.Test;
 public class TestInsert {
     @Test
     public void testInsert () {
-        final TrieMap<Object, Object> bt = new TrieMap<>();
+        final TrieMap<Object, Object> bt = TrieMap.create();
         assertNull(bt.put("a", "a"));
         assertNull(bt.put("b", "b"));
         assertNull(bt.put("c", "b"));
@@ -41,16 +41,16 @@ public class TestInsert {
 
     @Test(expected = NullPointerException.class)
     public void testNullKey() {
-        new TrieMap<>().put(null, "");
+        TrieMap.create().put(null, "");
     }
 
     @Test(expected = NullPointerException.class)
     public void testNullValue() {
-        new TrieMap<>().put("", null);
+        TrieMap.create().put("", null);
     }
 
     @Test(expected = NullPointerException.class)
     public void testNullBoth() {
-        new TrieMap<>().put(null, null);
+        TrieMap.create().put(null, null);
     }
 }