BUG-5280: implement message queueing
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / actors / client / ClientActorContextTest.java
index f575815cb1722ae1a05fc7ba74b6562ba6b23f85..8078f39679f1393aeff25edd397667a9535e203b 100644 (file)
@@ -9,6 +9,8 @@ package org.opendaylight.controller.cluster.datastore.actors.client;
 
 import static org.junit.Assert.assertSame;
 import akka.actor.ActorRef;
 
 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;
 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 ActorRef mockSelf;
 
+    @Mock
+    private Scheduler mockScheduler;
+
+    @Mock
+    private Dispatcher mockDispatcher;
+
     @Before
     public void setup() {
         MockitoAnnotations.initMocks(this);
     @Before
     public void setup() {
         MockitoAnnotations.initMocks(this);
@@ -37,7 +45,7 @@ public class ClientActorContextTest {
 
     @Test
     public void testMockingControl() {
 
     @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());
         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() {
 
     @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());
     }
 }
         assertSame(Ticker.systemTicker(), ctx.ticker());
     }
 }