summaryrefslogtreecommitdiff
path: root/src/test/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethodTest.java
diff options
context:
space:
mode:
authorKeuin <[email protected]>2021-01-20 17:41:35 +0800
committerkeuin <[email protected]>2021-01-20 17:41:35 +0800
commita28bd300a49328d04dff0a071e7cfca47cc1ed6c (patch)
tree70fa9ad6ce9bffd90c5069c083bd2ceb62662e13 /src/test/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethodTest.java
parent98274aeaa26f96529dcc76d8b64692fcc6627410 (diff)
1.4.1: will not backup `session.lock` file. Improve test case compatibility to suit more general compile environments.
Diffstat (limited to 'src/test/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethodTest.java')
-rw-r--r--src/test/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethodTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethodTest.java b/src/test/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethodTest.java
index 58e1711..30f2d44 100644
--- a/src/test/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethodTest.java
+++ b/src/test/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethodTest.java
@@ -15,12 +15,12 @@ import static org.junit.Assert.*;
public class ConfiguredIncrementalBackupMethodTest {
- private final String testTempPath = "R:\\";
+ private final String testTempPath = (new File("R:\\").isDirectory()) ? "R:\\" : ".\\testfile\\ConfiguredIncrementalBackupMethodTest";
private final String sourceDirectoryName = "source";
private final String destDirectoryName = "destination";
private final String indexFileName = "index";
- private final double directoryFactor = 0.03;
+ private final double directoryFactor = 0.02;
private final double fileFactor = 0.05;
private final int maxRandomFileSizeBytes = 1024 * 1024 * 16;
private final Function<Integer, Integer> scaleDecayFunc = (x) -> x - 1;