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%2Fdatastore%2FDistributedDataStoreWithSegmentedJournalIntegrationTest.java;h=1e7da9c587e8630224a14b81db75bf4d3cfbd593;hp=73888de3909c9a919eac3b5c9d8c7c6a501164c5;hb=a180ad35e1006969a390739ef2f3694fd9fcad48;hpb=628e4c6fa9bd55ea49eda4cd8e0a5cfcfdfa7dc5 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreWithSegmentedJournalIntegrationTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreWithSegmentedJournalIntegrationTest.java index 73888de390..1e7da9c587 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreWithSegmentedJournalIntegrationTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreWithSegmentedJournalIntegrationTest.java @@ -9,7 +9,6 @@ package org.opendaylight.controller.cluster.datastore; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; -import static org.junit.runners.Parameterized.Parameters; import static org.opendaylight.controller.md.cluster.datastore.model.CarsModel.CAR_QNAME; import akka.actor.ActorSystem; @@ -22,7 +21,6 @@ import com.google.common.util.concurrent.Uninterruptibles; import com.typesafe.config.ConfigFactory; import java.io.File; import java.io.IOException; -import java.math.BigInteger; import java.util.Arrays; import java.util.Collection; import java.util.Optional; @@ -34,11 +32,14 @@ import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; +import org.junit.runners.Parameterized.Parameters; +import org.opendaylight.controller.cluster.databroker.TestClientBackedDataStore; import org.opendaylight.controller.cluster.raft.utils.InMemorySnapshotStore; import org.opendaylight.controller.md.cluster.datastore.model.CarsModel; import org.opendaylight.mdsal.dom.spi.store.DOMStoreReadWriteTransaction; import org.opendaylight.mdsal.dom.spi.store.DOMStoreTransactionChain; import org.opendaylight.mdsal.dom.spi.store.DOMStoreWriteTransaction; +import org.opendaylight.yangtools.yang.common.Uint64; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; import org.opendaylight.yangtools.yang.data.api.schema.MapEntryNode; import org.opendaylight.yangtools.yang.data.api.schema.MapNode; @@ -53,7 +54,8 @@ public class DistributedDataStoreWithSegmentedJournalIntegrationTest @Parameters(name = "{0}") public static Collection data() { return Arrays.asList(new Object[][] { - { DistributedDataStore.class }}); + { TestDistributedDataStore.class }, { TestClientBackedDataStore.class } + }); } @Before @@ -108,7 +110,7 @@ public class DistributedDataStoreWithSegmentedJournalIntegrationTest DOMStoreReadWriteTransaction rwTx = txChain.newReadWriteTransaction(); YangInstanceIdentifier path = CarsModel.newCarPath("car" + i); - MapEntryNode data = CarsModel.newCarEntry("car" + i, BigInteger.valueOf(20000)); + MapEntryNode data = CarsModel.newCarEntry("car" + i, Uint64.valueOf(20000)); rwTx.merge(path, data); carMapBuilder.withChild(data);