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=fd223e2efe6cb045e8bb003982dd9081a2134428;hp=caffa698f14311949657021ac69216ad2088b7f2;hb=94814a5aaa12aa5d72a7b98042d0d48bbcd92fc6;hpb=dcc9827eab4f95b8e35820e8355066ff105d2720 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 caffa698f1..fd223e2efe 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 @@ -23,10 +23,12 @@ import akka.testkit.javadsl.TestKit; import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.junit.runner.RunWith; import org.mockito.Mock; -import org.mockito.MockitoAnnotations; +import org.mockito.junit.MockitoJUnitRunner; import scala.Option; +@RunWith(MockitoJUnitRunner.StrictStubs.class) public class QuarantinedMonitorActorTest { private static final Address LOCAL = Address.apply("http", "local"); @@ -39,7 +41,6 @@ public class QuarantinedMonitorActorTest { @Before public void setUp() { - MockitoAnnotations.initMocks(this); system = ActorSystem.apply(); actor = system.actorOf(QuarantinedMonitorActor.props(callback)); } @@ -90,5 +91,4 @@ public class QuarantinedMonitorActorTest { actor.tell(event, ActorRef.noSender()); verify(callback, never()).apply(); } - } \ No newline at end of file