Fix checkstyle problems not detected by the current version
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / messages / CanCommitTransactionReplyTest.java
index a85f5fbbd8e900cade30387bbf1dcd76932899fe..ce0c4c62d11c6e874e71caca53149876c6e1c558 100644 (file)
@@ -8,11 +8,11 @@
 package org.opendaylight.controller.cluster.datastore.messages;
 
 import static org.junit.Assert.assertEquals;
+
 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 +39,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()));