X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2FRaftActorSnapshotMessageSupportTest.java;h=94000d07121944f2b47dee06587aa220844ae3b3;hb=135129e0cca66040fd512fab740d59b2ab1f8382;hp=7d41508c3f298fed6df2e0b141505cd391522d3f;hpb=55e018bfad0c70b773641142d6fbf009cd67fda4;p=controller.git diff --git a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/RaftActorSnapshotMessageSupportTest.java b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/RaftActorSnapshotMessageSupportTest.java index 7d41508c3f..94000d0712 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/RaftActorSnapshotMessageSupportTest.java +++ b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/RaftActorSnapshotMessageSupportTest.java @@ -83,7 +83,7 @@ public class RaftActorSnapshotMessageSupportTest { } private void sendMessageToSupport(Object message, boolean expHandled) { - boolean handled = support.handleSnapshotMessage(message); + boolean handled = support.handleSnapshotMessage(message, mockRaftActorRef); assertEquals("complete", expHandled, handled); } @@ -97,9 +97,10 @@ public class RaftActorSnapshotMessageSupportTest { Snapshot snapshot = Snapshot.create(snapshotBytes, Collections.emptyList(), lastIndexDuringSnapshotCapture, 1, lastAppliedDuringSnapshotCapture, 1); - sendMessageToSupport(new ApplySnapshot(snapshot)); + ApplySnapshot applySnapshot = new ApplySnapshot(snapshot); + sendMessageToSupport(applySnapshot); - verify(mockSnapshotManager).apply(snapshot); + verify(mockSnapshotManager).apply(applySnapshot); } @Test