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%2FTransactionProxyTest.java;h=7407897dfac504872e37d35c374397369a8c5576;hb=1c9255fca204f4f7207d4fe3521fbfcdf087e10d;hp=b77b0b65cf86edb06f370e768725c5f86cb3a439;hpb=621ad520d61103e0e5c19cff5a1b00bdd11db86f;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/TransactionProxyTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/TransactionProxyTest.java index b77b0b65cf..7407897dfa 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/TransactionProxyTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/TransactionProxyTest.java @@ -358,7 +358,7 @@ public class TransactionProxyTest { executeOperationAsync(eq(actorSystem.actorSelection(actorRef.path())), eqCreateTransaction(memberName, type)); - doReturn(false).when(mockActorContext).isLocalPath(actorRef.path().toString()); + doReturn(false).when(mockActorContext).isPathLocal(actorRef.path().toString()); return actorRef; } @@ -669,7 +669,7 @@ public class TransactionProxyTest { } @Test(expected=IllegalStateException.class) - public void testxistsPreConditionCheck() { + public void testExistsPreConditionCheck() { TransactionProxy transactionProxy = new TransactionProxy(mockActorContext, WRITE_ONLY); @@ -807,7 +807,6 @@ public class TransactionProxyTest { } } - @SuppressWarnings("unchecked") @Test public void testReady() throws Exception { ActorRef actorRef = setupActorContextWithInitialCreateTransaction(getSystem(), READ_WRITE); @@ -842,7 +841,6 @@ public class TransactionProxyTest { verifyCohortFutures(proxy, getSystem().actorSelection(actorRef.path())); } - @SuppressWarnings("unchecked") @Test public void testReadyForwardCompatibility() throws Exception { ActorRef actorRef = setupActorContextWithInitialCreateTransaction(getSystem(), READ_WRITE, 0); @@ -883,7 +881,6 @@ public class TransactionProxyTest { eq(actorRef.path().toString())); } - @SuppressWarnings("unchecked") @Test public void testReadyWithRecordingOperationFailure() throws Exception { ActorRef actorRef = setupActorContextWithInitialCreateTransaction(getSystem(), WRITE_ONLY); @@ -899,7 +896,7 @@ public class TransactionProxyTest { doReturn(readySerializedTxReply(actorRef.path().toString())).when(mockActorContext).executeOperationAsync( eq(actorSelection(actorRef)), isA(ReadyTransaction.SERIALIZABLE_CLASS)); - doReturn(false).when(mockActorContext).isLocalPath(actorRef.path().toString()); + doReturn(false).when(mockActorContext).isPathLocal(actorRef.path().toString()); TransactionProxy transactionProxy = new TransactionProxy(mockActorContext, WRITE_ONLY); @@ -920,7 +917,6 @@ public class TransactionProxyTest { MergeDataReply.SERIALIZABLE_CLASS, TestException.class); } - @SuppressWarnings("unchecked") @Test public void testReadyWithReplyFailure() throws Exception { ActorRef actorRef = setupActorContextWithInitialCreateTransaction(getSystem(), WRITE_ONLY); @@ -977,7 +973,6 @@ public class TransactionProxyTest { verifyCohortFutures(proxy, PrimaryNotFoundException.class); } - @SuppressWarnings("unchecked") @Test public void testReadyWithInvalidReplyMessageType() throws Exception { ActorRef actorRef = setupActorContextWithInitialCreateTransaction(getSystem(), WRITE_ONLY); @@ -1016,7 +1011,6 @@ public class TransactionProxyTest { assertTrue("Invalid identifier: " + id, id.toString().startsWith(memberName)); } - @SuppressWarnings("unchecked") @Test public void testClose() throws Exception{ ActorRef actorRef = setupActorContextWithInitialCreateTransaction(getSystem(), READ_WRITE); @@ -1069,7 +1063,7 @@ public class TransactionProxyTest { executeOperationAsync(eq(actorSystem.actorSelection(shardActorRef.path())), eqCreateTransaction(memberName, READ_ONLY)); - doReturn(true).when(mockActorContext).isLocalPath(actorPath); + doReturn(true).when(mockActorContext).isPathLocal(actorPath); TransactionProxy transactionProxy = new TransactionProxy(mockActorContext,READ_ONLY); @@ -1124,7 +1118,7 @@ public class TransactionProxyTest { executeOperationAsync(eq(actorSystem.actorSelection(shardActorRef.path())), eqCreateTransaction(memberName, WRITE_ONLY)); - doReturn(true).when(mockActorContext).isLocalPath(actorPath); + doReturn(true).when(mockActorContext).isPathLocal(actorPath); NormalizedNode nodeToWrite = ImmutableNodes.containerNode(TestModel.TEST_QNAME);