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%2Fmodification%2FAbstractModificationTest.java;h=abb2d31df32f2bce8200126b6261a16b7b467211;hb=4c2eb5190241306df418c45253a914d06eb6815b;hp=d9c550a6db482d39855dc5a48ebb26b2fec8c6ad;hpb=c222e37f2a0f0f3f6266242fbea2d3b018f4e6e3;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModificationTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModificationTest.java index d9c550a6db..abb2d31df3 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModificationTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/modification/AbstractModificationTest.java @@ -30,13 +30,13 @@ public abstract class AbstractModificationTest { store.onGlobalContextUpdated(TestModel.createTestContext()); } - protected void commitTransaction(DOMStoreWriteTransaction transaction){ + protected void commitTransaction(final DOMStoreWriteTransaction transaction){ DOMStoreThreePhaseCommitCohort cohort = transaction.ready(); cohort.preCommit(); cohort.commit(); } - protected Optional> readData(YangInstanceIdentifier path) throws Exception{ + protected Optional> readData(final YangInstanceIdentifier path) throws Exception{ DOMStoreReadTransaction transaction = store.newReadOnlyTransaction(); ListenableFuture>> future = transaction.read(path); return future.get();