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 / CreateTransactionTest.java
index 771d091..a558b75 100644 (file)
@@ -12,7 +12,6 @@ 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.protobuff.messages.transaction.ShardTransactionMessages;
 
 /**
  * Unit tests for CreateTransaction.
@@ -36,21 +35,6 @@ public class CreateTransactionTest {
         assertEquals("getVersion", DataStoreVersions.CURRENT_VERSION, actual.getVersion());
     }
 
-    @Test
-    public void testSerializationWithPreBoronVersion() {
-        CreateTransaction expected = new CreateTransaction("txId", 2, "chainId", DataStoreVersions.LITHIUM_VERSION);
-
-        Object serialized = expected.toSerializable();
-        assertEquals("Serialized type", ShardTransactionMessages.CreateTransaction.class, serialized.getClass());
-
-        CreateTransaction actual = CreateTransaction.fromSerializable(
-                SerializationUtils.clone((Serializable) serialized));
-        assertEquals("getTransactionId", expected.getTransactionId(), actual.getTransactionId());
-        assertEquals("getTransactionType", expected.getTransactionType(), actual.getTransactionType());
-        assertEquals("getTransactionChainId", expected.getTransactionChainId(), actual.getTransactionChainId());
-        assertEquals("getVersion", DataStoreVersions.LITHIUM_VERSION, actual.getVersion());
-    }
-
     @Test
     public void testSerializationWithNewerVersion() {
         short newerVersion = DataStoreVersions.CURRENT_VERSION + (short)1;
@@ -69,10 +53,6 @@ public class CreateTransactionTest {
 
     @Test
     public void testIsSerializedType() {
-        assertEquals("isSerializedType", true, CreateTransaction.isSerializedType(
-                ShardTransactionMessages.CreateTransaction.newBuilder().setTransactionId("")
-                    .setTransactionType(2).setTransactionChainId("").setMessageVersion(4).build()));
-
         assertEquals("isSerializedType", true, CreateTransaction.isSerializedType(new CreateTransaction()));
         assertEquals("isSerializedType", false, CreateTransaction.isSerializedType(new Object()));
     }