X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FRemoteTransactionContextTest.java;h=3f9b81343d6edce8d7fa0405317e769988ae6797;hb=dc295d9be77748d7e695d003a02d299d493abc8d;hp=526ad77b78eb3c34fdbb67fbd9a760ff2c31237b;hpb=cf6947f7516b34e4877625c8bf271b5e2dea7c55;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/RemoteTransactionContextTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/RemoteTransactionContextTest.java index 526ad77b78..3f9b81343d 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/RemoteTransactionContextTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/RemoteTransactionContextTest.java @@ -72,8 +72,8 @@ public class RemoteTransactionContextTest extends AbstractActorTest { */ @Test public void testLimiterOnFailure() throws TimeoutException, InterruptedException { - txContext.executeModification(DELETE); - txContext.executeModification(DELETE); + txContext.executeModification(DELETE, null); + txContext.executeModification(DELETE, null); assertEquals(2, limiter.availablePermits()); Future future = txContext.sendBatchedModifications(); @@ -90,12 +90,12 @@ public class RemoteTransactionContextTest extends AbstractActorTest { assertEquals(4, limiter.availablePermits()); // The transaction has failed, no throttling should occur - txContext.executeModification(DELETE); + txContext.executeModification(DELETE, null); assertEquals(4, limiter.availablePermits()); // Executing a read should result in immediate failure final SettableFuture readFuture = SettableFuture.create(); - txContext.executeRead(new DataExists(), readFuture); + txContext.executeRead(new DataExists(), readFuture, null); assertTrue(readFuture.isDone()); try { readFuture.get(); @@ -106,7 +106,7 @@ public class RemoteTransactionContextTest extends AbstractActorTest { } }); - future = txContext.directCommit(); + future = txContext.directCommit(null); msg = kit.expectMsgClass(BatchedModifications.class); // Modification should have been thrown away by the dropped transmit induced by executeRead() @@ -131,12 +131,12 @@ public class RemoteTransactionContextTest extends AbstractActorTest { */ @Test public void testLimiterOnOverflowFailure() throws TimeoutException, InterruptedException { - txContext.executeModification(DELETE); - txContext.executeModification(DELETE); - txContext.executeModification(DELETE); - txContext.executeModification(DELETE); + txContext.executeModification(DELETE, null); + txContext.executeModification(DELETE, null); + txContext.executeModification(DELETE, null); + txContext.executeModification(DELETE, null); assertEquals(0, limiter.availablePermits()); - txContext.executeModification(DELETE); + txContext.executeModification(DELETE, null); // Last acquire should have failed ... assertEquals(0, limiter.availablePermits());