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 / CanCommitTransactionReplyTest.java
index a85f5fb..628a661 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.cohort3pc.ThreePhaseCommitCohortMessages;
 
 /**
  * Unit tests for CanCommitTransactionReply.
@@ -39,19 +38,8 @@ public class CanCommitTransactionReplyTest {
         assertEquals("getVersion", DataStoreVersions.CURRENT_VERSION, actual.getVersion());
     }
 
-    @Test
-    public void testSerializationWithPreBoronVersion() {
-        testSerialization(CanCommitTransactionReply.yes(DataStoreVersions.LITHIUM_VERSION),
-                ThreePhaseCommitCohortMessages.CanCommitTransactionReply.class);
-        testSerialization(CanCommitTransactionReply.no(DataStoreVersions.LITHIUM_VERSION),
-                ThreePhaseCommitCohortMessages.CanCommitTransactionReply.class);
-    }
-
     @Test
     public void testIsSerializedType() {
-        assertEquals("isSerializedType", true, CanCommitTransactionReply.isSerializedType(
-                ThreePhaseCommitCohortMessages.CanCommitTransactionReply.newBuilder().setCanCommit(true).build()));
-
         assertEquals("isSerializedType", true, CanCommitTransactionReply.isSerializedType(
                 new CanCommitTransactionReply()));
         assertEquals("isSerializedType", false, CanCommitTransactionReply.isSerializedType(new Object()));