X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatabroker%2FClientBackedReadWriteTransactionTest.java;h=d651d089fb24d4119660c9f360c21694f56601fa;hp=ad1fd1bf4606e1a535e781eeaea6f08b98e5d427;hb=66e553f2098ea61426c4a441be57395673535c2f;hpb=a85197fcfedf2894b98439ea0ad66b3f5a0eb00b diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/ClientBackedReadWriteTransactionTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/ClientBackedReadWriteTransactionTest.java index ad1fd1bf46..d651d089fb 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/ClientBackedReadWriteTransactionTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/databroker/ClientBackedReadWriteTransactionTest.java @@ -47,15 +47,15 @@ public class ClientBackedReadWriteTransactionTest doReturn(TRANSACTION_ID).when(delegate).getIdentifier(); doReturn(readyCohort).when(delegate).ready(); - doReturn(immediateTrueFluentFuture()).when(delegate).exists(YangInstanceIdentifier.EMPTY); - doReturn(immediateFluentFuture(Optional.of(data))).when(delegate).read(YangInstanceIdentifier.EMPTY); + doReturn(immediateTrueFluentFuture()).when(delegate).exists(YangInstanceIdentifier.empty()); + doReturn(immediateFluentFuture(Optional.of(data))).when(delegate).read(YangInstanceIdentifier.empty()); object = new ClientBackedReadWriteTransaction(delegate, null); } @Test public void testRead() throws Exception { - final FluentFuture>> result = object().read(YangInstanceIdentifier.EMPTY); + final FluentFuture>> result = object().read(YangInstanceIdentifier.empty()); final Optional> resultData = result.get(); assertTrue(resultData.isPresent()); assertEquals(data, resultData.get()); @@ -63,6 +63,6 @@ public class ClientBackedReadWriteTransactionTest @Test public void testExists() throws Exception { - assertEquals(Boolean.TRUE, object().exists(YangInstanceIdentifier.EMPTY).get()); + assertEquals(Boolean.TRUE, object().exists(YangInstanceIdentifier.empty()).get()); } }