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=93c83a463315aa771e40e653d9742be75ce30ab3;hb=9905bf0575ff196a531eb114e89b1bdb7226bc6c;hp=3f9b81343d6edce8d7fa0405317e769988ae6797;hpb=123afd8b015173c459f4937c84eb2e91286f65a8;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 3f9b81343d..93c83a4633 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 @@ -76,14 +76,14 @@ public class RemoteTransactionContextTest extends AbstractActorTest { txContext.executeModification(DELETE, null); assertEquals(2, limiter.availablePermits()); - Future future = txContext.sendBatchedModifications(); + final Future sendFuture = txContext.sendBatchedModifications(); assertEquals(2, limiter.availablePermits()); BatchedModifications msg = kit.expectMsgClass(BatchedModifications.class); assertEquals(2, msg.getModifications().size()); assertEquals(1, msg.getTotalMessagesSent()); sendReply(new Failure(new NullPointerException())); - assertFuture(future, new OnComplete() { + assertFuture(sendFuture, new OnComplete() { @Override public void onComplete(final Throwable failure, final Object success) { assertTrue(failure instanceof NullPointerException); @@ -106,7 +106,7 @@ public class RemoteTransactionContextTest extends AbstractActorTest { } }); - future = txContext.directCommit(null); + final Future commitFuture = txContext.directCommit(null); msg = kit.expectMsgClass(BatchedModifications.class); // Modification should have been thrown away by the dropped transmit induced by executeRead() @@ -115,14 +115,14 @@ public class RemoteTransactionContextTest extends AbstractActorTest { assertTrue(msg.isReady()); assertEquals(2, msg.getTotalMessagesSent()); sendReply(new Failure(new IllegalStateException())); - assertFuture(future, new OnComplete() { + assertFuture(commitFuture, new OnComplete() { @Override public void onComplete(final Throwable failure, final Object success) { assertTrue(failure instanceof IllegalStateException); } }); - kit.expectNoMsg(); + kit.expectNoMessage(); } /** @@ -140,7 +140,7 @@ public class RemoteTransactionContextTest extends AbstractActorTest { // Last acquire should have failed ... assertEquals(0, limiter.availablePermits()); - Future future = txContext.sendBatchedModifications(); + final Future future = txContext.sendBatchedModifications(); assertEquals(0, limiter.availablePermits()); BatchedModifications msg = kit.expectMsgClass(BatchedModifications.class); @@ -158,7 +158,7 @@ public class RemoteTransactionContextTest extends AbstractActorTest { } }); - kit.expectNoMsg(); + kit.expectNoMessage(); } private void sendReply(final Object message) {