Make Netty-3 dependency optional
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / messages / AbortTransactionReplyTest.java
index 36c2255466360af47c931fb3ca5b99f6c9a35db0..1b033546211e21b1f64e854ac77083939a6adc71 100644 (file)
@@ -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 AbortTransactionReplyTest {
-
     @Test
     public void testSerialization() {
         AbortTransactionReply expected = AbortTransactionReply.instance(DataStoreVersions.CURRENT_VERSION);
@@ -33,7 +36,7 @@ public class AbortTransactionReplyTest {
 
     @Test
     public void testIsSerializedType() {
-        assertEquals("isSerializedType", true, AbortTransactionReply.isSerializedType(new AbortTransactionReply()));
-        assertEquals("isSerializedType", false, AbortTransactionReply.isSerializedType(new Object()));
+        assertTrue("isSerializedType", AbortTransactionReply.isSerializedType(new AbortTransactionReply()));
+        assertFalse("isSerializedType", AbortTransactionReply.isSerializedType(new Object()));
     }
 }