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
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());
* 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;