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;
*
* @author Thomas Pantelis
*/
+@Deprecated(since = "9.0.0", forRemoval = true)
public class AbortTransactionTest {
-
@Test
public void testSerialization() {
AbortTransaction expected = new AbortTransaction(
@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()));
}
}