@Test public void testMaybeRestore_newInstall() { when(dataStoreConfiguration.getName()).thenReturn("config"); assertFalse(underTest.maybeRestore(dataStoreConfiguration)); }
@Override public boolean maybeRestore(final DataStoreConfiguration dataStoreConfiguration) { File dbDirectory = getDbDirectory(); File restoreDirectory = getRestoreDirectory(); if (!restoreDirectory.exists()) { log.debug("Restore directory does not exist, skipping."); return false; } return doRestore(dbDirectory, restoreDirectory, dataStoreConfiguration); }
DataStoreRestorerLocalImpl extends ComponentSupport implements DataStoreRestorer { @Override public boolean maybeRestore(final DataStoreConfiguration dataStoreConfiguration) { File dbDirectory = getDbDirectory(); File restoreDirectory = getRestoreDirectory(); if (!restoreDirectory.exists()) { log.debug("Restore directory does not exist, skipping."); return false; } return doRestore(dbDirectory, restoreDirectory, dataStoreConfiguration); } }
DataStoreRestorerLocalImpl extends ComponentSupport implements DataStoreRestorer { @Override public boolean maybeRestore(final DataStoreConfiguration dataStoreConfiguration) { File dbDirectory = getDbDirectory(); File restoreDirectory = getRestoreDirectory(); if (!restoreDirectory.exists()) { log.debug("Restore directory does not exist, skipping."); return false; } return doRestore(dbDirectory, restoreDirectory, dataStoreConfiguration); } @Inject  DataStoreRestorerLocalImpl(final ApplicationDirectories applicationDirectories); }
DataStoreRestorerLocalImpl extends ComponentSupport implements DataStoreRestorer { @Override public boolean maybeRestore(final DataStoreConfiguration dataStoreConfiguration) { File dbDirectory = getDbDirectory(); File restoreDirectory = getRestoreDirectory(); if (!restoreDirectory.exists()) { log.debug("Restore directory does not exist, skipping."); return false; } return doRestore(dbDirectory, restoreDirectory, dataStoreConfiguration); } @Inject  DataStoreRestorerLocalImpl(final ApplicationDirectories applicationDirectories); @Override boolean maybeRestore(final DataStoreConfiguration dataStoreConfiguration); }
DataStoreRestorerLocalImpl extends ComponentSupport implements DataStoreRestorer { @Override public boolean maybeRestore(final DataStoreConfiguration dataStoreConfiguration) { File dbDirectory = getDbDirectory(); File restoreDirectory = getRestoreDirectory(); if (!restoreDirectory.exists()) { log.debug("Restore directory does not exist, skipping."); return false; } return doRestore(dbDirectory, restoreDirectory, dataStoreConfiguration); } @Inject  DataStoreRestorerLocalImpl(final ApplicationDirectories applicationDirectories); @Override boolean maybeRestore(final DataStoreConfiguration dataStoreConfiguration);  }