BUG-7464: Update pom.xml
[yangtools.git] / third-party / triemap / src / test / java / com / romix / scala / collection / concurrent / TestSerialization.java
diff --git a/third-party/triemap/src/test/java/com/romix/scala/collection/concurrent/TestSerialization.java b/third-party/triemap/src/test/java/com/romix/scala/collection/concurrent/TestSerialization.java
deleted file mode 100644 (file)
index 04a4a2c..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.romix.scala.collection.concurrent;
-
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.io.ObjectOutputStream;
-
-import junit.framework.Assert;
-
-import org.junit.Test;
-
-public class TestSerialization {
-    @Test
-    public void testSerialization() throws IOException, ClassNotFoundException {
-        TrieMap<String, String> map = new TrieMap<String, String>();
-
-        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();
-
-        final ByteArrayOutputStream bos = new ByteArrayOutputStream();
-        final ObjectOutputStream oos = new ObjectOutputStream(bos);
-        oos.writeObject(expected);
-        oos.close();
-
-        final byte[] bytes = bos.toByteArray();
-        final ByteArrayInputStream bis = new ByteArrayInputStream(bytes);
-        final ObjectInputStream ois = new ObjectInputStream(bis);
-
-        @SuppressWarnings("unchecked")
-        final TrieMap<String, String> actual = (TrieMap<String, String>) ois.readObject();
-        ois.close();
-
-        Assert.assertEquals(expected, actual);
-    }
-}