X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fmessages%2FCanCommitTransactionReplyTest.java;h=628a661ce42e702f37e32f484992381083da1211;hb=4f1f2ae598588f6aa5aac59b2206d97ad402a193;hp=a85f5fbbd8e900cade30387bbf1dcd76932899fe;hpb=600e07c2adb213b614cad127070f1e7ff074b42b;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/CanCommitTransactionReplyTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/CanCommitTransactionReplyTest.java index a85f5fbbd8..628a661ce4 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/CanCommitTransactionReplyTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/CanCommitTransactionReplyTest.java @@ -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()));