X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2FSnapshotTest.java;h=a0b9cd5ee1898b99ce0ab4fe26bedf49d970ce15;hp=9302b6dcf47b2f305d90520c291a7d6bb8058bd6;hb=ecccb6d5b43dd73aef0d2d19349d19ee9b4728f7;hpb=5aa58404a8ee1ad053742780439823309360a3a1 diff --git a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/SnapshotTest.java b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/SnapshotTest.java index 9302b6dcf4..a0b9cd5ee1 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/SnapshotTest.java +++ b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/SnapshotTest.java @@ -46,7 +46,7 @@ public class SnapshotTest { } } - private Snapshot newLithiumSnapshot() { + private static Snapshot newLithiumSnapshot() { byte[] state = {1, 2, 3, 4, 5}; List entries = new ArrayList<>(); entries.add(new ReplicatedLogImplEntry(6, 2, new MockPayload("payload"))); @@ -62,7 +62,7 @@ public class SnapshotTest { * Use this method to generate a file with a serialized Snapshot instance to be * used in tests that verify backwards compatible de-serialization. */ - private void generateSerializedFile(Snapshot snapshot, String fileName) throws IOException { + private static void generateSerializedFile(Snapshot snapshot, String fileName) throws IOException { FileOutputStream fos = new FileOutputStream("src/test/resources/" + fileName); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(snapshot);