X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2FRaftActorTestKit.java;h=815047423426e559b9099150f6c85d31aafe53ce;hp=3e747e387ee1f881ba0141f1042cd837430b1ae2;hb=11dadddb4d9ba26ae0b1795921c7a218a6d893c2;hpb=f807611cb1efd307031d3bed10914d07c643e344 diff --git a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/RaftActorTestKit.java b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/RaftActorTestKit.java index 3e747e387e..8150474234 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/RaftActorTestKit.java +++ b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/RaftActorTestKit.java @@ -12,9 +12,7 @@ import akka.actor.ActorSystem; import akka.pattern.Patterns; import akka.testkit.JavaTestKit; import akka.util.Timeout; -import com.google.common.base.Optional; import com.google.common.util.concurrent.Uninterruptibles; -import java.util.Collections; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import org.junit.Assert; @@ -31,8 +29,7 @@ public class RaftActorTestKit extends JavaTestKit { public RaftActorTestKit(ActorSystem actorSystem, String actorName) { super(actorSystem); - raftActor = this.getSystem().actorOf(MockRaftActor.props(actorName, - Collections.emptyMap(), Optional.absent()), actorName); + raftActor = this.getSystem().actorOf(MockRaftActor.builder().id(actorName).props(), actorName); }