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%2FDistributedDataStoreTest.java;h=aeb47de888564f90830dc26a05c1ead1e66a78c1;hp=406f0ffd9e6383953554d400d31e3b19496bc7c2;hb=c33b2b55b2eae406df001619885a0610800cb951;hpb=bd943b7ee79b6324c561f8fbe2bea4a4293d5dd1 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreTest.java index 406f0ffd9e..aeb47de888 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DistributedDataStoreTest.java @@ -3,6 +3,7 @@ package org.opendaylight.controller.cluster.datastore; import akka.actor.ActorRef; import akka.actor.ActorSystem; import akka.actor.Props; + import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -63,12 +64,14 @@ public class DistributedDataStoreTest extends AbstractActorTest{ } + @SuppressWarnings("resource") @Test public void testConstructor(){ ActorSystem actorSystem = mock(ActorSystem.class); new DistributedDataStore(actorSystem, "config", - mock(ClusterWrapper.class), mock(Configuration.class)); + mock(ClusterWrapper.class), mock(Configuration.class), + new DatastoreContext()); verify(actorSystem).actorOf(any(Props.class), eq("shardmanager-config")); }