diff options
author | Keuin <[email protected]> | 2021-01-23 14:10:32 +0800 |
---|---|---|
committer | keuin <[email protected]> | 2021-01-23 14:10:32 +0800 |
commit | 4a1d885afa7217b47d6183488c3dc6537cef05b6 (patch) | |
tree | 1b499db6b834cb0709029e30c0d52c0ddf200ffa /src/test/java/com/keuin/kbackupfabric/backup/incremental/ObjectCollectionFactoryTest.java | |
parent | 4ac575330130ac4e1b4b35386ffc0aacd431a5a4 (diff) |
Version 1.4.6 (preview): added metadata for incremental backup (need integrated test and display implementation)
Diffstat (limited to 'src/test/java/com/keuin/kbackupfabric/backup/incremental/ObjectCollectionFactoryTest.java')
-rw-r--r-- | src/test/java/com/keuin/kbackupfabric/backup/incremental/ObjectCollectionFactoryTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/com/keuin/kbackupfabric/backup/incremental/ObjectCollectionFactoryTest.java b/src/test/java/com/keuin/kbackupfabric/backup/incremental/ObjectCollectionFactoryTest.java index 5052a82..e686e30 100644 --- a/src/test/java/com/keuin/kbackupfabric/backup/incremental/ObjectCollectionFactoryTest.java +++ b/src/test/java/com/keuin/kbackupfabric/backup/incremental/ObjectCollectionFactoryTest.java @@ -11,10 +11,10 @@ import static org.junit.Assert.*; public class ObjectCollectionFactoryTest { - private void validate(ObjectCollection collection, List<String> subCollections, Map<String, String> subElements) { + private void validate(ObjectCollection2 collection, List<String> subCollections, Map<String, String> subElements) { assertEquals(subCollections.size(), collection.getSubCollectionMap().size()); assertEquals(subElements.size(), collection.getElementSet().size()); - for (Map.Entry<String, ObjectCollection> c : collection.getSubCollectionMap().entrySet()) { + for (Map.Entry<String, ObjectCollection2> c : collection.getSubCollectionMap().entrySet()) { assertEquals(c.getKey(), c.getValue().getName()); assertTrue(subCollections.contains(c.getKey())); } @@ -68,7 +68,7 @@ public class ObjectCollectionFactoryTest { try { ObjectCollectionFactory<Sha256Identifier> factory = new ObjectCollectionFactory<>(Sha256Identifier.getFactory(), threads, multiThreadThreshold); - ObjectCollection collection = + ObjectCollection2 collection = factory.fromDirectory(new File("./testfile/ObjectCollectionFactoryTest")); assertEquals("ObjectCollectionFactoryTest", collection.getName()); |