summaryrefslogtreecommitdiff
path: root/src/test/java/com/keuin/kbackupfabric/util/backup/incremental/ObjectCollectionSerializerTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/keuin/kbackupfabric/util/backup/incremental/ObjectCollectionSerializerTest.java')
-rw-r--r--src/test/java/com/keuin/kbackupfabric/util/backup/incremental/ObjectCollectionSerializerTest.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/test/java/com/keuin/kbackupfabric/util/backup/incremental/ObjectCollectionSerializerTest.java b/src/test/java/com/keuin/kbackupfabric/util/backup/incremental/ObjectCollectionSerializerTest.java
deleted file mode 100644
index 0edfe01..0000000
--- a/src/test/java/com/keuin/kbackupfabric/util/backup/incremental/ObjectCollectionSerializerTest.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.keuin.kbackupfabric.util.backup.incremental;
-
-import com.keuin.kbackupfabric.util.backup.incremental.identifier.Sha256Identifier;
-import org.junit.Test;
-
-import java.io.File;
-import java.io.IOException;
-import java.nio.file.Files;
-
-import static org.junit.Assert.assertEquals;
-
-public class ObjectCollectionSerializerTest {
- @Test
- public void testSerializationConsistency() throws IOException {
- ObjectCollectionFactory<Sha256Identifier> factory =
- new ObjectCollectionFactory<>(Sha256Identifier.getFactory());
- ObjectCollection collection =
- factory.fromDirectory(new File("./testfile/ObjectCollectionFactoryTest"));
- File file = new File("./testfile/serialized");
- if (file.exists()) {
- Files.delete(file.toPath());
- }
- ObjectCollectionSerializer.toFile(collection, file);
- ObjectCollection collection2 = ObjectCollectionSerializer.fromFile(file);
- Files.delete(file.toPath());
- assertEquals(collection, collection2);
- }
-
-} \ No newline at end of file