mirror of
https://github.com/cryptomator/cryptomator.git
synced 2024-11-23 12:09:45 +00:00
added temporary dummy health checks for testing purposes
[ci skip]
This commit is contained in:
parent
c7b9735f13
commit
6b0d8a48c2
@ -0,0 +1,41 @@
|
||||
package org.cryptomator.ui.health;
|
||||
|
||||
import org.cryptomator.cryptofs.VaultConfig;
|
||||
import org.cryptomator.cryptofs.health.api.DiagnosticResult;
|
||||
import org.cryptomator.cryptofs.health.api.HealthCheck;
|
||||
import org.cryptomator.cryptolib.api.Cryptor;
|
||||
import org.cryptomator.cryptolib.api.Masterkey;
|
||||
|
||||
import java.nio.file.Path;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
/**
|
||||
* FIXME: Remove in production release
|
||||
*/
|
||||
public class DummyHealthChecks {
|
||||
|
||||
public static class DummyCheck1 implements HealthCheck {
|
||||
|
||||
@Override
|
||||
public void check(Path path, VaultConfig vaultConfig, Masterkey masterkey, Cryptor cryptor, Consumer<DiagnosticResult> consumer) {
|
||||
// no-op
|
||||
}
|
||||
}
|
||||
|
||||
public static class DummyCheck2 implements HealthCheck {
|
||||
|
||||
@Override
|
||||
public void check(Path path, VaultConfig vaultConfig, Masterkey masterkey, Cryptor cryptor, Consumer<DiagnosticResult> consumer) {
|
||||
// no-op
|
||||
}
|
||||
}
|
||||
|
||||
public static class DummyCheck3 implements HealthCheck {
|
||||
|
||||
@Override
|
||||
public void check(Path path, VaultConfig vaultConfig, Masterkey masterkey, Cryptor cryptor, Consumer<DiagnosticResult> consumer) {
|
||||
// no-op
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
org.cryptomator.ui.health.DummyHealthChecks$DummyCheck1
|
||||
org.cryptomator.ui.health.DummyHealthChecks$DummyCheck2
|
||||
org.cryptomator.ui.health.DummyHealthChecks$DummyCheck3
|
Loading…
Reference in New Issue
Block a user