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=69590e62fb1b5886fc0b5fb1223706d02c1706cd;hb=c33b2b55b2eae406df001619885a0610800cb951;hpb=d206d27042eef2185c875f85cf6eac61a1bd77c4 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 69590e62fb..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), null); + mock(ClusterWrapper.class), mock(Configuration.class), + new DatastoreContext()); verify(actorSystem).actorOf(any(Props.class), eq("shardmanager-config")); }