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%2Fpersisted%2FSnapshotTest.java;fp=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2Fpersisted%2FSnapshotTest.java;h=9f1f924252da9a9fd624973944f47ac42bb573b7;hb=b5cb353e3553a39f576c284119af75ffa5ea66a9;hp=19f0ec132b35fac68af6a9ebf3fb4c00626dd149;hpb=b712eb01354ddb5878008e2a2e8f03fb19b92555;p=controller.git diff --git a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/persisted/SnapshotTest.java b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/persisted/SnapshotTest.java index 19f0ec132b..9f1f924252 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/persisted/SnapshotTest.java +++ b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/persisted/SnapshotTest.java @@ -25,13 +25,13 @@ import org.opendaylight.controller.cluster.raft.ReplicatedLogEntry; public class SnapshotTest { @Test - public void testSerialization() throws Exception { + public void testSerialization() { testSerialization(new byte[]{1, 2, 3, 4, 5, 6, 7}, Arrays.asList( new SimpleReplicatedLogEntry(6, 2, new MockPayload("payload")))); testSerialization(new byte[]{1, 2, 3, 4, 5, 6, 7, 8, 9}, Collections.emptyList()); } - private void testSerialization(byte[] state, List unapplied) throws Exception { + private static void testSerialization(final byte[] state, final List unapplied) { long lastIndex = 6; long lastTerm = 2; long lastAppliedIndex = 5;