summaryrefslogtreecommitdiff
path: root/src/test/java/com/keuin/kbackupfabric/backup/incremental/ObjectCollectionFactoryTest.java
diff options
context:
space:
mode:
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.java23
1 files changed, 21 insertions, 2 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 9a2a73c..16fb258 100644
--- a/src/test/java/com/keuin/kbackupfabric/backup/incremental/ObjectCollectionFactoryTest.java
+++ b/src/test/java/com/keuin/kbackupfabric/backup/incremental/ObjectCollectionFactoryTest.java
@@ -25,10 +25,29 @@ public class ObjectCollectionFactoryTest {
}
@Test
- public void fromDirectory() {
+ public void fromDirectory1() {
+ fromDirectory(1);
+ }
+
+ @Test
+ public void fromDirectory2() {
+ fromDirectory(2);
+ }
+
+ @Test
+ public void fromDirectory4() {
+ fromDirectory(4);
+ }
+
+ @Test
+ public void fromDirectory8() {
+ fromDirectory(8);
+ }
+
+ public void fromDirectory(int threads) {
try {
ObjectCollectionFactory<Sha256Identifier> factory =
- new ObjectCollectionFactory<>(Sha256Identifier.getFactory());
+ new ObjectCollectionFactory<>(Sha256Identifier.getFactory(), threads);
ObjectCollection collection =
factory.fromDirectory(new File("./testfile/ObjectCollectionFactoryTest"));