BUG-7464: Split TrieMap into read-only and read-write
[yangtools.git] / third-party / triemap / src / test / java / org / opendaylight / yangtools / triemap / TestSerialization.java
index ed7a11eab75275dad643202f04ca9125cbf2b6b3..0af3568abe085d98107b7f0eea6cf2c7280a04a6 100644 (file)
@@ -26,14 +26,14 @@ import org.junit.Test;
 public class TestSerialization {
     @Test
     public void testSerialization() throws IOException, ClassNotFoundException {
-        TrieMap<String, String> map = new TrieMap<>();
+        TrieMap<String, String> map = TrieMap.create();
 
         map.put("dude-0", "tom");
         map.put("dude-1", "john");
         map.put("dude-3", "ravi");
         map.put("dude-4", "alex");
 
-        TrieMap<String, String> expected = map.readOnlySnapshot();
+        TrieMap<String, String> expected = map.immutableSnapshot();
 
         final ByteArrayOutputStream bos = new ByteArrayOutputStream();
         final ObjectOutputStream oos = new ObjectOutputStream(bos);