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%2FDataExistsTest.java;h=bcd732215036152e8199ed79f28978e305ba4247;hb=HEAD;hp=b0c46451fc34316299896fe1188ccabb4252b91a;hpb=24c074a4b32ac97980a652b78824b7c2f97ffb78;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/DataExistsTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/DataExistsTest.java index b0c46451fc..bcd7322150 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/DataExistsTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/DataExistsTest.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; import org.opendaylight.controller.md.cluster.datastore.model.TestModel; @@ -19,8 +22,8 @@ import org.opendaylight.controller.md.cluster.datastore.model.TestModel; * * @author Thomas Pantelis */ +@Deprecated(since = "9.0.0", forRemoval = true) public class DataExistsTest { - @Test public void testSerialization() { DataExists expected = new DataExists(TestModel.TEST_PATH, DataStoreVersions.CURRENT_VERSION); @@ -35,7 +38,7 @@ public class DataExistsTest { @Test public void testIsSerializedType() { - assertEquals("isSerializedType", true, DataExists.isSerializedType(new DataExists())); - assertEquals("isSerializedType", false, DataExists.isSerializedType(new Object())); + assertTrue("isSerializedType", DataExists.isSerializedType(new DataExists())); + assertFalse("isSerializedType", DataExists.isSerializedType(new Object())); } }