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%2Factors%2Fclient%2FClientActorContextTest.java;h=8078f39679f1393aeff25edd397667a9535e203b;hp=f575815cb1722ae1a05fc7ba74b6562ba6b23f85;hb=50a2f5eb1c94650bc1be1e49d3a5382a1a74a9b3;hpb=c6e3a444f7e8702aade9839ca950bc9790be8831 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/actors/client/ClientActorContextTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/actors/client/ClientActorContextTest.java index f575815cb1..8078f39679 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/actors/client/ClientActorContextTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/actors/client/ClientActorContextTest.java @@ -9,6 +9,8 @@ package org.opendaylight.controller.cluster.datastore.actors.client; import static org.junit.Assert.assertSame; import akka.actor.ActorRef; +import akka.actor.Scheduler; +import akka.dispatch.Dispatcher; import com.google.common.base.Ticker; import org.junit.Before; import org.junit.Test; @@ -30,6 +32,12 @@ public class ClientActorContextTest { @Mock private ActorRef mockSelf; + @Mock + private Scheduler mockScheduler; + + @Mock + private Dispatcher mockDispatcher; + @Before public void setup() { MockitoAnnotations.initMocks(this); @@ -37,7 +45,7 @@ public class ClientActorContextTest { @Test public void testMockingControl() { - ClientActorContext ctx = new ClientActorContext(mockSelf, PERSISTENCE_ID, CLIENT_ID); + ClientActorContext ctx = new ClientActorContext(mockSelf, mockScheduler, mockDispatcher, PERSISTENCE_ID, CLIENT_ID); assertSame(CLIENT_ID, ctx.getIdentifier()); assertSame(PERSISTENCE_ID, ctx.persistenceId()); assertSame(mockSelf, ctx.self()); @@ -45,7 +53,7 @@ public class ClientActorContextTest { @Test public void testTicker() { - ClientActorContext ctx = new ClientActorContext(mockSelf, PERSISTENCE_ID, CLIENT_ID); + ClientActorContext ctx = new ClientActorContext(mockSelf, mockScheduler, mockDispatcher, PERSISTENCE_ID, CLIENT_ID); assertSame(Ticker.systemTicker(), ctx.ticker()); } }