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=8a088e3fdbcef8c48ffb115b8d154aa23cf07f4f;hpb=95a52fc4c0a1c9a9abe787b3f0e7ffa340709a96;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 8a088e3fdb..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; @@ -139,7 +139,7 @@ public class OwnerSupervisorTest extends AbstractNativeEosTest { } private Behavior switchToSupervisor(final InitialCandidateSync message) { - return OwnerSupervisor.create(currentCandidates, currentOwners); + return OwnerSupervisor.create(currentCandidates, currentOwners, CODEC_CONTEXT.getInstanceIdentifierCodec()); } } @@ -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,