X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotobuff%2Fmessages%2Ftransaction%2FShardTransactionChainMessagesTest.java;h=dba8f4f95aa249ced73e7c76b026ecbd6a1bdd41;hp=c0e91ab0d0bfc58f10c66529fdbc73d89000e463;hb=c796596b5c46b5203c30b143e6282662e66c5642;hpb=8e42b08cb626a60919c145b2a46d94114c3905d6 diff --git a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/protobuff/messages/transaction/ShardTransactionChainMessagesTest.java b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/protobuff/messages/transaction/ShardTransactionChainMessagesTest.java index c0e91ab0d0..dba8f4f95a 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/protobuff/messages/transaction/ShardTransactionChainMessagesTest.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/protobuff/messages/transaction/ShardTransactionChainMessagesTest.java @@ -10,11 +10,8 @@ package org.opendaylight.controller.protobuff.messages.transaction; -import org.junit.Assert; import org.junit.Test; import org.opendaylight.controller.protobuff.messages.AbstractMessagesTest; -import org.opendaylight.controller.protobuff.messages.common.NormalizedNodeMessages; -import org.opendaylight.yangtools.yang.common.QName; /** * This test case is present to ensure that if others have used proper version of protocol buffer @@ -34,29 +31,6 @@ public class ShardTransactionChainMessagesTest extends AbstractMessagesTest { @Override @Test public void verifySerialization() throws Exception { - String testTransactionChainPath = - "/actor/path"; - - ShardTransactionChainMessages.CreateTransactionChainReply.Builder builder = - ShardTransactionChainMessages.CreateTransactionChainReply.newBuilder(); - builder.setTransactionChainPath(testTransactionChainPath); - - writeToFile((com.google.protobuf.GeneratedMessage.Builder) builder); - - // Here we will read the same and check we got back what we had saved - ShardTransactionChainMessages.CreateTransactionChainReply replyNew = - (ShardTransactionChainMessages.CreateTransactionChainReply) readFromFile(ShardTransactionChainMessages.CreateTransactionChainReply.PARSER); - - Assert.assertEquals(replyNew.getTransactionChainPath(),testTransactionChainPath); - - // the following will compare with the version we had shipped - ShardTransactionChainMessages.CreateTransactionChainReply replyOriginal = - (ShardTransactionChainMessages.CreateTransactionChainReply) readFromTestDataFile(ShardTransactionChainMessages.CreateTransactionChainReply.PARSER); - - - Assert.assertEquals(replyOriginal.getTransactionChainPath(), - replyNew.getTransactionChainPath()); - } @Override