Fix incorrect last history update
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / test / java / org / opendaylight / controller / cluster / raft / ReplicatedLogImplEntryTest.java
index 1fe22bcd4e91725a96cb448215f2acddb26adf4d..085861ffaee5c26e01949627c7c93750e87b1470 100644 (file)
@@ -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;