X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fcommon%2Factor%2FQuarantinedMonitorActorTest.java;h=897cb6193ad3678ba8a1e308a74506029d8a9081;hp=fd223e2efe6cb045e8bb003982dd9081a2134428;hb=229c55fbdc5907129c9c35b3e98963b5fa2528f0;hpb=3bad2175c3662f875c8b1b345365015f139d1829;ds=sidebyside diff --git a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/common/actor/QuarantinedMonitorActorTest.java b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/common/actor/QuarantinedMonitorActorTest.java index fd223e2efe..897cb6193a 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/common/actor/QuarantinedMonitorActorTest.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/test/java/org/opendaylight/controller/cluster/common/actor/QuarantinedMonitorActorTest.java @@ -18,7 +18,8 @@ import akka.event.Logging; import akka.japi.Effect; import akka.remote.AssociationErrorEvent; import akka.remote.InvalidAssociation; -import akka.remote.ThisActorSystemQuarantinedEvent; +import akka.remote.UniqueAddress; +import akka.remote.artery.ThisActorSystemQuarantinedEvent; import akka.testkit.javadsl.TestKit; import org.junit.After; import org.junit.Before; @@ -54,7 +55,9 @@ public class QuarantinedMonitorActorTest { public void testOnReceiveQuarantined() throws Exception { final Throwable t = new RuntimeException("Remote has quarantined this system"); final InvalidAssociation cause = InvalidAssociation.apply(LOCAL, REMOTE, t, Option.apply(null)); - final ThisActorSystemQuarantinedEvent event = new ThisActorSystemQuarantinedEvent(LOCAL, REMOTE); + final UniqueAddress localAddress = new UniqueAddress(LOCAL, 1); + final UniqueAddress remoteAddress = new UniqueAddress(REMOTE, 2); + final ThisActorSystemQuarantinedEvent event = new ThisActorSystemQuarantinedEvent(localAddress, remoteAddress); actor.tell(event, ActorRef.noSender()); verify(callback, timeout(1000)).apply(); }