BUG-5280: switch transaction IDs from String to TransactionIdentifier
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / messages / AbortTransactionTest.java
index 92fa6d04aec2ef7c5b60b5c31aa31181cfc4dd4e..2e298acc3f45b861f241ffbf74eebffe408877af 100644 (file)
@@ -12,6 +12,7 @@ import java.io.Serializable;
 import org.apache.commons.lang.SerializationUtils;
 import org.junit.Test;
 import org.opendaylight.controller.cluster.datastore.DataStoreVersions;
 import org.apache.commons.lang.SerializationUtils;
 import org.junit.Test;
 import org.opendaylight.controller.cluster.datastore.DataStoreVersions;
+import org.opendaylight.controller.cluster.datastore.MockIdentifiers;
 
 /**
  * Unit tests for AbortTransaction.
 
 /**
  * Unit tests for AbortTransaction.
@@ -22,7 +23,8 @@ public class AbortTransactionTest {
 
     @Test
     public void testSerialization() {
 
     @Test
     public void testSerialization() {
-        AbortTransaction expected = new AbortTransaction("txId", DataStoreVersions.CURRENT_VERSION);
+        AbortTransaction expected = new AbortTransaction(
+            MockIdentifiers.transactionIdentifier(AbortTransactionTest.class, "mock"), DataStoreVersions.CURRENT_VERSION);
 
         Object serialized = expected.toSerializable();
         assertEquals("Serialized type", AbortTransaction.class, serialized.getClass());
 
         Object serialized = expected.toSerializable();
         assertEquals("Serialized type", AbortTransaction.class, serialized.getClass());