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%2FReplicatedLogImplEntryTest.java;h=085861ffaee5c26e01949627c7c93750e87b1470;hp=1fe22bcd4e91725a96cb448215f2acddb26adf4d;hb=200164de7246237ee45f761c4db15b8b51f6a93c;hpb=014ab8770cfe40cf0ce1f2c88e0b0666429c760c diff --git a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/ReplicatedLogImplEntryTest.java b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/ReplicatedLogImplEntryTest.java index 1fe22bcd4e..085861ffae 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/ReplicatedLogImplEntryTest.java +++ b/opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/ReplicatedLogImplEntryTest.java @@ -14,12 +14,14 @@ import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import org.junit.Assert; import org.junit.Test; +import org.opendaylight.controller.cluster.raft.persisted.SimpleReplicatedLogEntry; /** * Unit tests for ReplicatedLogImplEntry. * * @author Thomas Pantelis */ +@Deprecated public class ReplicatedLogImplEntryTest { @Test @@ -28,10 +30,10 @@ public class ReplicatedLogImplEntryTest { int expIndex = 1; int expTerm = 2; - try(FileInputStream fis = new FileInputStream("src/test/resources/helium-serialized-ReplicatedLogImplEntry")) { + try (FileInputStream fis = new FileInputStream("src/test/resources/helium-serialized-ReplicatedLogImplEntry")) { ObjectInputStream ois = new ObjectInputStream(fis); - ReplicatedLogImplEntry entry = (ReplicatedLogImplEntry) ois.readObject(); + SimpleReplicatedLogEntry entry = (SimpleReplicatedLogEntry) ois.readObject(); ois.close(); Assert.assertEquals("getIndex", expIndex, entry.getIndex()); @@ -46,7 +48,8 @@ public class ReplicatedLogImplEntryTest { * Use this method to generate a file with a serialized ReplicatedLogImplEntry instance to be * used in tests that verify backwards compatible de-serialization. */ - private void generateSerializedFile() throws IOException { + @SuppressWarnings("unused") + private static void generateSerializedFile() throws IOException { String expPayloadData = "This is a test"; int expIndex = 1; int expTerm = 2;