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%2FDataExistsReplyTest.java;h=61eb8b16a13d6934609a6238357563ac72e29bef;hb=HEAD;hp=790626d7305c0e751e04a29447d09dc9113b00a0;hpb=24c074a4b32ac97980a652b78824b7c2f97ffb78;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/DataExistsReplyTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/DataExistsReplyTest.java index 790626d730..61eb8b16a1 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/DataExistsReplyTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/DataExistsReplyTest.java @@ -8,8 +8,11 @@ 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.DataStoreVersions; @@ -18,8 +21,8 @@ import org.opendaylight.controller.cluster.datastore.DataStoreVersions; * * @author Thomas Pantelis */ +@Deprecated(since = "9.0.0", forRemoval = true) public class DataExistsReplyTest { - @Test public void testSerialization() { DataExistsReply expected = new DataExistsReply(true, DataStoreVersions.CURRENT_VERSION); @@ -34,7 +37,7 @@ public class DataExistsReplyTest { @Test public void testIsSerializedType() { - assertEquals("isSerializedType", true, DataExistsReply.isSerializedType(new DataExistsReply())); - assertEquals("isSerializedType", false, DataExistsReply.isSerializedType(new Object())); + assertTrue("isSerializedType", DataExistsReply.isSerializedType(new DataExistsReply())); + assertFalse("isSerializedType", DataExistsReply.isSerializedType(new Object())); } }