diff options
author | Ingo Bauersachs <ingo@jitsi.org> | 2013-08-06 17:47:10 +0200 |
---|---|---|
committer | Ingo Bauersachs <ingo@jitsi.org> | 2013-11-10 21:05:39 +0100 |
commit | f2694065ad7685cb76c23b8aecd39e1481c07c0b (patch) | |
tree | b7342f9464009c3ace7a6cee1f4c871fd4c70b9b /test | |
parent | 6f79b983682bfd08572ba3364e27e68d91632082 (diff) | |
download | jitsi-f2694065ad7685cb76c23b8aecd39e1481c07c0b.zip jitsi-f2694065ad7685cb76c23b8aecd39e1481c07c0b.tar.gz jitsi-f2694065ad7685cb76c23b8aecd39e1481c07c0b.tar.bz2 |
Use separate dirs for application logs, cache and configuration data
This is primarily used on Windows to store logs and cached data
on the local computers instead of on the network when roaming profiles
with folder redirection is used.
Diffstat (limited to 'test')
-rw-r--r-- | test/net/java/sip/communicator/slick/fileaccess/TestFileAccessService.java | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/test/net/java/sip/communicator/slick/fileaccess/TestFileAccessService.java b/test/net/java/sip/communicator/slick/fileaccess/TestFileAccessService.java index 923eeb8..d4c17ce 100644 --- a/test/net/java/sip/communicator/slick/fileaccess/TestFileAccessService.java +++ b/test/net/java/sip/communicator/slick/fileaccess/TestFileAccessService.java @@ -32,12 +32,6 @@ public class TestFileAccessService extends TestCase { private static final String dirName = "fileaccessservice.dir.tst"; /** - * The persistent directory's name. - */ - private static final String[] dirNames = { "fileaccessservice.dir.tst", - "subdir1", "subdir2" }; - - /** * The persistent file's name. */ private static final String fileName = "fileaccessservice.tst"; @@ -128,8 +122,8 @@ public class TestFileAccessService extends TestCase { public void testCreatePersistentDirectory() throws Exception { try { - this.fileAccessService.getPrivatePersistentDirectory(dirName); - this.fileAccessService.getPrivatePersistentDirectory(dirNames); + this.fileAccessService.getPrivatePersistentDirectory(dirName, + FileCategory.PROFILE); } catch (IOException e) { fail("Error creating the temp directory: " + e.getMessage()); @@ -146,7 +140,8 @@ public class TestFileAccessService extends TestCase { File privateDir = null; try { privateDir = this.fileAccessService - .getPrivatePersistentDirectory(dirName); + .getPrivatePersistentDirectory(dirName, + FileCategory.PROFILE); } catch (IOException e) { fail("Error creating the private directory: " + e.getMessage()); @@ -178,7 +173,7 @@ public class TestFileAccessService extends TestCase { { try { File file = this.fileAccessService - .getPrivatePersistentFile(fileName); + .getPrivatePersistentFile(fileName, FileCategory.PROFILE); if (!file.exists()) { @@ -201,7 +196,7 @@ public class TestFileAccessService extends TestCase { { try { File file = this.fileAccessService - .getPrivatePersistentFile(fileName); + .getPrivatePersistentFile(fileName, FileCategory.PROFILE); if (file.exists()) { @@ -221,7 +216,7 @@ public class TestFileAccessService extends TestCase { try { File file = this.fileAccessService - .getPrivatePersistentFile(fileName); + .getPrivatePersistentFile(fileName, FileCategory.PROFILE); if (!file.exists()) { @@ -243,7 +238,7 @@ public class TestFileAccessService extends TestCase { try { File file = this.fileAccessService - .getPrivatePersistentFile(fileName); + .getPrivatePersistentFile(fileName, FileCategory.PROFILE); if (!file.exists()) { @@ -253,7 +248,7 @@ public class TestFileAccessService extends TestCase { writeReadFile(file); File newFile = this.fileAccessService - .getPrivatePersistentFile(fileName); + .getPrivatePersistentFile(fileName, FileCategory.PROFILE); // Assert that those files are in fact the same assertEquals(file, newFile); |