X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Feos-dom-akka%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Feos%2Fakka%2Fowner%2Fsupervisor%2FOwnerSupervisorTest.java;h=4bf68a7ef1a46c0749ad618ba0a21054cc58f03e;hb=refs%2Fchanges%2F66%2F98466%2F2;hp=b396053e29815683ab15fda72a5fc26095800db5;hpb=5041389b273212eb0c643cc071fd48ad1166d864;p=controller.git diff --git a/opendaylight/md-sal/eos-dom-akka/src/test/java/org/opendaylight/controller/eos/akka/owner/supervisor/OwnerSupervisorTest.java b/opendaylight/md-sal/eos-dom-akka/src/test/java/org/opendaylight/controller/eos/akka/owner/supervisor/OwnerSupervisorTest.java index b396053e29..4bf68a7ef1 100644 --- a/opendaylight/md-sal/eos-dom-akka/src/test/java/org/opendaylight/controller/eos/akka/owner/supervisor/OwnerSupervisorTest.java +++ b/opendaylight/md-sal/eos-dom-akka/src/test/java/org/opendaylight/controller/eos/akka/owner/supervisor/OwnerSupervisorTest.java @@ -117,8 +117,8 @@ public class OwnerSupervisorTest extends AbstractNativeEosTest { private final Map currentOwners; private MockSyncer(final ActorContext context, - final Map> currentCandidates, - final Map currentOwners) { + final Map> currentCandidates, + final Map currentOwners) { super(context); this.currentCandidates = currentCandidates; this.currentOwners = currentOwners; @@ -163,12 +163,14 @@ public class OwnerSupervisorTest extends AbstractNativeEosTest { listenerRegistry = context.spawn(EntityTypeListenerRegistry.create(role), "ListenerRegistry"); candidateRegistry = context.spawn(CandidateRegistry.create(), "CandidateRegistry"); - ownerStateChecker = context.spawn(OwnerStateChecker.create(role), "OwnerStateChecker"); final ClusterSingleton clusterSingleton = ClusterSingleton.get(context.getSystem()); // start the initial sync behavior that switches to the regular one after syncing ownerSupervisor = clusterSingleton.init(SingletonActor.of( MockSyncer.create(currentCandidates, currentOwners), "OwnerSupervisor")); + + ownerStateChecker = context.spawn(OwnerStateChecker.create(role, ownerSupervisor, null), + "OwnerStateChecker"); } public static Behavior create(final Map> currentCandidates,