mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-28 15:40:20 +00:00
Added project filesystem-invariants-tests
* Implemented some tests to be run on multiple implementations to demonstrate how such tests can be implemented * Detected problems with CryptoFileSystem(NioFileSystem) * Made CryptoFileSystem and CryptorImpl public / constructible from other packages
This commit is contained in:
@@ -43,7 +43,7 @@ public class CryptorImpl implements Cryptor {
|
||||
private final AtomicReference<FileContentCryptor> fileContentCryptor = new AtomicReference<>();
|
||||
private final SecureRandom randomSource;
|
||||
|
||||
CryptorImpl(SecureRandom randomSource) {
|
||||
public CryptorImpl(SecureRandom randomSource) {
|
||||
this.randomSource = randomSource;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import org.cryptomator.filesystem.Folder;
|
||||
import org.cryptomator.filesystem.ReadableFile;
|
||||
import org.cryptomator.filesystem.WritableFile;
|
||||
|
||||
class CryptoFileSystem extends CryptoFolder implements FileSystem {
|
||||
public class CryptoFileSystem extends CryptoFolder implements FileSystem {
|
||||
|
||||
private static final String DATA_ROOT_DIR = "d";
|
||||
private static final String ROOT_DIR_FILE = "root";
|
||||
|
||||
Reference in New Issue
Block a user