public static class PersisterWithConfiguration {
- public final Persister storage;
+ private final Persister storage;
private final boolean readOnly;
public PersisterWithConfiguration(Persister storage, boolean readOnly) {
this.readOnly = readOnly;
}
+ @VisibleForTesting
+ public Persister getStorage() {
+ return storage;
+ }
+
+ @VisibleForTesting
+ public boolean isReadOnly() {
+ return readOnly;
+ }
+
@Override
public String toString() {
return "PersisterWithConfiguration{" +