mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-09-28 14:59:40 -04:00
Add rolling backup
This commit is contained in:
parent
530b15147c
commit
4c0cc738e4
11 changed files with 109 additions and 55 deletions
|
@ -20,10 +20,10 @@ package io.bitsquare.crypto;
|
|||
|
||||
import io.bitsquare.app.Version;
|
||||
import io.bitsquare.common.crypto.*;
|
||||
import io.bitsquare.common.util.Utilities;
|
||||
import io.bitsquare.p2p.NodeAddress;
|
||||
import io.bitsquare.p2p.messaging.MailboxMessage;
|
||||
import io.bitsquare.p2p.messaging.PrefixedSealedAndSignedMessage;
|
||||
import io.bitsquare.storage.FileUtil;
|
||||
import org.bouncycastle.jce.provider.BouncyCastleProvider;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
|
@ -66,7 +66,7 @@ public class EncryptionServiceTests {
|
|||
|
||||
@After
|
||||
public void tearDown() throws IOException {
|
||||
Utilities.deleteDirectory(dir);
|
||||
FileUtil.deleteDirectory(dir);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -2,7 +2,6 @@ package io.bitsquare.p2p.storage;
|
|||
|
||||
import io.bitsquare.common.UserThread;
|
||||
import io.bitsquare.common.crypto.*;
|
||||
import io.bitsquare.common.util.Utilities;
|
||||
import io.bitsquare.crypto.EncryptionService;
|
||||
import io.bitsquare.p2p.NodeAddress;
|
||||
import io.bitsquare.p2p.P2PService;
|
||||
|
@ -12,6 +11,7 @@ import io.bitsquare.p2p.peers.PeerManager;
|
|||
import io.bitsquare.p2p.storage.messages.RefreshTTLMessage;
|
||||
import io.bitsquare.p2p.storage.mocks.MockData;
|
||||
import io.bitsquare.p2p.storage.storageentry.ProtectedStorageEntry;
|
||||
import io.bitsquare.storage.FileUtil;
|
||||
import org.bouncycastle.jce.provider.BouncyCastleProvider;
|
||||
import org.junit.*;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -90,10 +90,9 @@ public class ProtectedDataStorageTest {
|
|||
|
||||
Path path = Paths.get(TestUtils.test_dummy_dir);
|
||||
File dir = path.toFile();
|
||||
Utilities.deleteDirectory(dir);
|
||||
|
||||
Utilities.deleteDirectory(dir1);
|
||||
Utilities.deleteDirectory(dir2);
|
||||
FileUtil.deleteDirectory(dir);
|
||||
FileUtil.deleteDirectory(dir1);
|
||||
FileUtil.deleteDirectory(dir2);
|
||||
}
|
||||
|
||||
//@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue