diff options
author | Keuin <[email protected]> | 2021-01-24 20:01:17 +0800 |
---|---|---|
committer | keuin <[email protected]> | 2021-01-24 20:01:17 +0800 |
commit | 5063ab12c48a6612d903c44c943230b6c323f602 (patch) | |
tree | 38ad6cf5f48377142a1d2fabfb1122eb9a681421 /src/test/java/com/keuin/kbackupfabric/operation | |
parent | dfd27f1a01a612c39bc17cac9793c80cc9b72e6b (diff) |
Code refactor: eliminate unnecessary instance creation of IncrementalBackupFileNameEncoder
Diffstat (limited to 'src/test/java/com/keuin/kbackupfabric/operation')
-rw-r--r-- | src/test/java/com/keuin/kbackupfabric/operation/backup/method/ConfiguredIncrementalBackupMethodTest.java | 2 |
1 files changed, 1 insertions, 1 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 5fe0411..c69bd11 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 @@ -23,7 +23,7 @@ public class ConfiguredIncrementalBackupMethodTest { private final String sourceDirectoryName = "source"; private final String destDirectoryName = "destination"; private final String customBackupName = "index"; - private final String indexFileName = new IncrementalBackupFileNameEncoder().encode(customBackupName, LocalDateTime.now()); + private final String indexFileName = IncrementalBackupFileNameEncoder.INSTANCE.encode(customBackupName, LocalDateTime.now()); private final double directoryFactor = 0.05; private final double fileFactor = 0.1; |