BUG-5280: remove support for talking to pre-Boron clients
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / messages / ReadDataTest.java
index 5690218..8214e31 100644 (file)
@@ -12,9 +12,7 @@ import java.io.Serializable;
 import org.apache.commons.lang.SerializationUtils;
 import org.junit.Test;
 import org.opendaylight.controller.cluster.datastore.DataStoreVersions;
-import org.opendaylight.controller.cluster.datastore.util.InstanceIdentifierUtils;
 import org.opendaylight.controller.md.cluster.datastore.model.TestModel;
-import org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages;
 
 /**
  * Unit tests for ReadData.
@@ -35,24 +33,8 @@ public class ReadDataTest {
         assertEquals("getVersion", DataStoreVersions.CURRENT_VERSION, actual.getVersion());
     }
 
-    @Test
-    public void testSerializationWithPreBoronVersion() {
-        ReadData expected = new ReadData(TestModel.TEST_PATH, DataStoreVersions.LITHIUM_VERSION);
-
-        Object serialized = expected.toSerializable();
-        assertEquals("Serialized type", ShardTransactionMessages.ReadData.class, serialized.getClass());
-
-        ReadData actual = ReadData.fromSerializable(SerializationUtils.clone((Serializable) serialized));
-        assertEquals("getPath", expected.getPath(), actual.getPath());
-        assertEquals("getVersion", DataStoreVersions.LITHIUM_VERSION, actual.getVersion());
-    }
-
     @Test
     public void testIsSerializedType() {
-        assertEquals("isSerializedType", true, ReadData.isSerializedType(
-                ShardTransactionMessages.ReadData.newBuilder().setInstanceIdentifierPathArguments(
-                        InstanceIdentifierUtils.toSerializable(TestModel.TEST_PATH)).build()));
-
         assertEquals("isSerializedType", true, ReadData.isSerializedType(new ReadData()));
         assertEquals("isSerializedType", false, ReadData.isSerializedType(new Object()));
     }