BUG-5280: use MemberName instead of String
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / identifiers / ChainedTransactionIdentifierTest.java
index b4bb5aa1cbb42e1bad0269a169a1dbed5c9ddbd6..64f04add99592c3c6fd24029b6adfa75c6be2646 100644 (file)
@@ -12,12 +12,13 @@ import static org.hamcrest.CoreMatchers.startsWith;
 import static org.junit.Assert.assertThat;
 import static org.junit.Assert.assertTrue;
 import org.junit.Test;
+import org.opendaylight.controller.cluster.access.concepts.MemberName;
 
 public class ChainedTransactionIdentifierTest {
 
     @Test
     public void testToString(){
-        TransactionChainIdentifier chainId = new TransactionChainIdentifier("member-1", 99);
+        TransactionChainIdentifier chainId = new TransactionChainIdentifier(MemberName.forName("member-1"), 99);
         ChainedTransactionIdentifier chainedTransactionIdentifier = new ChainedTransactionIdentifier(chainId, 100);
 
         String txnId = chainedTransactionIdentifier.toString();