Adjust to mdsal CursorAware API changes
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / databroker / ClientBackedTransactionChainTest.java
index dab278635f837f479a93d02d1228e41bb3fa9a60..3bec1835745c576b0881325bfb38657038b41992 100644 (file)
@@ -34,7 +34,7 @@ public class ClientBackedTransactionChainTest {
     private ClientTransaction transaction;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         MockitoAnnotations.initMocks(this);
 
         final FrontendIdentifier frontendId = FrontendIdentifier.create(
@@ -49,29 +49,29 @@ public class ClientBackedTransactionChainTest {
         Mockito.when(history.takeSnapshot()).thenReturn(snapshot);
         Mockito.when(history.createTransaction()).thenReturn(transaction);
 
-        chain = new ClientBackedTransactionChain(history);
+        chain = new ClientBackedTransactionChain(history, false);
     }
 
     @Test
-    public void testNewReadOnlyTransaction() throws Exception {
+    public void testNewReadOnlyTransaction() {
         Assert.assertNotNull(chain.newReadOnlyTransaction());
         Mockito.verify(history).takeSnapshot();
     }
 
     @Test
-    public void testNewReadWriteTransaction() throws Exception {
+    public void testNewReadWriteTransaction() {
         Assert.assertNotNull(chain.newReadWriteTransaction());
         Mockito.verify(history).createTransaction();
     }
 
     @Test
-    public void testNewWriteOnlyTransaction() throws Exception {
+    public void testNewWriteOnlyTransaction() {
         Assert.assertNotNull(chain.newWriteOnlyTransaction());
         Mockito.verify(history).createTransaction();
     }
 
     @Test
-    public void testClose() throws Exception {
+    public void testClose() {
         chain.newReadOnlyTransaction();
         chain.close();
         Mockito.verify(snapshot).abort();
@@ -79,7 +79,7 @@ public class ClientBackedTransactionChainTest {
     }
 
     @Test
-    public void testSnapshotClosed() throws Exception {
+    public void testSnapshotClosed() {
         chain.snapshotClosed(snapshot);
         // snap is removed, so cannot be aborted
         chain.close();