Fix checkstyle reported by odlparent-3.0.0
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / databroker / actors / dds / ClientLocalHistoryTest.java
index 8aadd86ddbb41ce4c08958e7276473540dc4828f..158b408c874724e578ca2743bbd13300221a1629 100644 (file)
@@ -105,15 +105,15 @@ public class ClientLocalHistoryTest extends AbstractClientHistoryTest<ClientLoca
     @Override
     @Test
     public void testOnTransactionComplete() throws Exception {
-        final ClientTransaction transaction = object().createTransaction();
+        final ClientTransaction tx = object().createTransaction();
 
         // make transaction ready
-        object().onTransactionReady(transaction, cohort);
+        object().onTransactionReady(tx, cohort);
         // state should be set to IDLE
         Assert.assertEquals(AbstractClientHistory.State.IDLE, object.state());
 
         // complete transaction
-        object().onTransactionComplete(transaction.getIdentifier());
+        object().onTransactionComplete(tx.getIdentifier());
         // state is still IDLE
         Assert.assertEquals(AbstractClientHistory.State.IDLE, object.state());
     }
@@ -129,9 +129,9 @@ public class ClientLocalHistoryTest extends AbstractClientHistoryTest<ClientLoca
     @Override
     @Test(expected = IllegalStateException.class)
     public void testOnTransactionReadyDuplicate() throws Exception {
-        final ClientTransaction transaction = object().createTransaction();
-        object().onTransactionReady(transaction, cohort);
-        object().onTransactionReady(transaction, cohort);
+        final ClientTransaction tx = object().createTransaction();
+        object().onTransactionReady(tx, cohort);
+        object().onTransactionReady(tx, cohort);
     }
 
     @Test
@@ -154,4 +154,4 @@ public class ClientLocalHistoryTest extends AbstractClientHistoryTest<ClientLoca
     public void testOnTransactionReadyAndCompleteIdleFail() throws Exception {
         object().onTransactionReady(transaction, cohort);
     }
-}
\ No newline at end of file
+}