Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bug 5153: Add timestamp to TransactionIdentifier
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
identifiers
/
ChainedTransactionIdentifierTest.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/identifiers/ChainedTransactionIdentifierTest.java
b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/identifiers/ChainedTransactionIdentifierTest.java
index 77e5ea75994429d8d3b582392a97efb4ecb43a87..b4bb5aa1cbb42e1bad0269a169a1dbed5c9ddbd6 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/identifiers/ChainedTransactionIdentifierTest.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/identifiers/ChainedTransactionIdentifierTest.java
@@
-8,7
+8,8
@@
package org.opendaylight.controller.cluster.datastore.identifiers;
package org.opendaylight.controller.cluster.datastore.identifiers;
-import static org.junit.Assert.assertEquals;
+import static org.hamcrest.CoreMatchers.startsWith;
+import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
@@
-25,7
+26,7
@@
public class ChainedTransactionIdentifierTest {
assertTrue(txnId.contains("100"));
assertTrue(txnId.contains("99"));
assertTrue(txnId.contains("100"));
assertTrue(txnId.contains("99"));
- assert
Equals("member-1-chn-99-txn-100", txnId
);
+ assert
That(txnId, startsWith("member-1-chn-99-txn-100-")
);
}
}
\ No newline at end of file
}
}
\ No newline at end of file