Refactor MessageCollectorActor and DoNothingActor
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / cluster / datastore / utils / TestUtils.java
index a2c44b063091fd45829624cde07230e325222336..8a141fb9b35789907b587facdbcda041f376d57e 100644 (file)
@@ -13,6 +13,8 @@ import akka.actor.ActorSystem;
 import akka.actor.Props;
 import java.util.List;
 import org.junit.Assert;
 import akka.actor.Props;
 import java.util.List;
 import org.junit.Assert;
+import org.opendaylight.controller.cluster.raft.utils.DoNothingActor;
+import org.opendaylight.controller.cluster.raft.utils.MessageCollectorActor;
 
 public class TestUtils {
 
 
 public class TestUtils {
 
@@ -20,7 +22,7 @@ public class TestUtils {
         ActorContext testContext = new ActorContext(actorSystem, actorSystem.actorOf(
             Props.create(DoNothingActor.class)), new MockClusterWrapper(), new MockConfiguration());
         Object messages = testContext
         ActorContext testContext = new ActorContext(actorSystem, actorSystem.actorOf(
             Props.create(DoNothingActor.class)), new MockClusterWrapper(), new MockConfiguration());
         Object messages = testContext
-            .executeOperation(actorRef, "messages");
+            .executeOperation(actorRef, MessageCollectorActor.GET_ALL_MESSAGES);
 
         Assert.assertNotNull(messages);
 
 
         Assert.assertNotNull(messages);