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%2FAbortTransactionTest.java;h=c0300e667b5c6fb4db67495740b8ee72e7821f7a;hb=HEAD;hp=bf6146f543bb3e25e6cca728eb3832ff829acddb;hpb=057b787289f7b909d7013c22ac73a1c91c860af8;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/AbortTransactionTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/AbortTransactionTest.java index bf6146f543..c0300e667b 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/AbortTransactionTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/AbortTransactionTest.java @@ -8,9 +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.cluster.datastore.MockIdentifiers; @@ -20,8 +22,8 @@ import org.opendaylight.controller.cluster.datastore.MockIdentifiers; * * @author Thomas Pantelis */ +@Deprecated(since = "9.0.0", forRemoval = true) public class AbortTransactionTest { - @Test public void testSerialization() { AbortTransaction expected = new AbortTransaction( @@ -39,7 +41,7 @@ public class AbortTransactionTest { @Test public void testIsSerializedType() { - assertEquals("isSerializedType", true, AbortTransaction.isSerializedType(new AbortTransaction())); - assertEquals("isSerializedType", false, AbortTransaction.isSerializedType(new Object())); + assertTrue("isSerializedType", AbortTransaction.isSerializedType(new AbortTransaction())); + assertFalse("isSerializedType", AbortTransaction.isSerializedType(new Object())); } }