X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fmessages%2FCreateTransactionReplyTest.java;h=5acacfe8b182587fca05202589f3f5a289b3843b;hb=HEAD;hp=b8edbd94f46aaf0f5ce8a3292a71e7c30930a784;hpb=24c074a4b32ac97980a652b78824b7c2f97ffb78;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/CreateTransactionReplyTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/CreateTransactionReplyTest.java index b8edbd94f4..5acacfe8b1 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/CreateTransactionReplyTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/CreateTransactionReplyTest.java @@ -8,9 +8,13 @@ package org.opendaylight.controller.cluster.datastore.messages; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + import java.io.Serializable; -import org.apache.commons.lang.SerializationUtils; +import org.apache.commons.lang3.SerializationUtils; import org.junit.Test; +import org.opendaylight.controller.cluster.datastore.AbstractTest; import org.opendaylight.controller.cluster.datastore.DataStoreVersions; /** @@ -18,11 +22,12 @@ import org.opendaylight.controller.cluster.datastore.DataStoreVersions; * * @author Thomas Pantelis */ -public class CreateTransactionReplyTest { - +@Deprecated(since = "9.0.0", forRemoval = true) +public class CreateTransactionReplyTest extends AbstractTest { @Test public void testSerialization() { - CreateTransactionReply expected = new CreateTransactionReply("txPath", "txId", DataStoreVersions.CURRENT_VERSION); + CreateTransactionReply expected = new CreateTransactionReply("txPath", nextTransactionId(), + DataStoreVersions.CURRENT_VERSION); Object serialized = expected.toSerializable(); assertEquals("Serialized type", CreateTransactionReply.class, serialized.getClass()); @@ -36,7 +41,7 @@ public class CreateTransactionReplyTest { @Test public void testIsSerializedType() { - assertEquals("isSerializedType", true, CreateTransactionReply.isSerializedType(new CreateTransactionReply())); - assertEquals("isSerializedType", false, CreateTransactionReply.isSerializedType(new Object())); + assertTrue("isSerializedType", CreateTransactionReply.isSerializedType(new CreateTransactionReply())); + assertFalse("isSerializedType", CreateTransactionReply.isSerializedType(new Object())); } }