mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Merge pull request #7664 from gdicristofaro/centralRepoTestFix
central repo test fix
This commit is contained in:
commit
6e8aa91be3
@ -44,6 +44,8 @@ public class CentralRepoSettings {
|
||||
|
||||
private static final String DEFAULT_DB_PARENT_PATH = Paths.get(CENTRAL_REPO_BASE_PATH, "LocalDatabase").toString();
|
||||
private static final String DEFAULT_DB_NAME = "central_repository.db";
|
||||
|
||||
// NOTE: if this changes, an equivalent fix will be needed in CentralRepoDatamodelTest for the String PROPERTIES_FILE
|
||||
private static final String MODULE_SETTINGS_KEY = Paths.get(
|
||||
Paths.get(PlatformUtil.getUserConfigDirectory()).relativize(Paths.get(PlatformUtil.getModuleConfigDirectory())).toString(),
|
||||
CENTRAL_REPOSITORY_FOLDER,
|
||||
|
@ -43,7 +43,6 @@ import org.sleuthkit.autopsy.casemodule.CaseDetails;
|
||||
import org.sleuthkit.autopsy.coreutils.ModuleSettings;
|
||||
import org.sleuthkit.datamodel.TskData;
|
||||
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
|
||||
import org.sleuthkit.autopsy.centralrepository.CentralRepoSettings;
|
||||
import org.sleuthkit.autopsy.coreutils.FileUtil;
|
||||
|
||||
/**
|
||||
@ -57,7 +56,10 @@ import org.sleuthkit.autopsy.coreutils.FileUtil;
|
||||
*/
|
||||
public class CentralRepoDatamodelTest extends TestCase {
|
||||
|
||||
private static final String PROPERTIES_FILE = CentralRepoSettings.getInstance().getModuleSettingsKey();
|
||||
// Classloader for qa functional tests is having trouble with loading NbBundle.
|
||||
// Path is hard-coded to avoid that issue instead of using
|
||||
// CentralRepoSettings.getInstance().getModuleSettingsKey()
|
||||
private static final String PROPERTIES_FILE = "ModuleConfig/CentralRepository/CentralRepository";
|
||||
private static final String CR_DB_NAME = "testcentralrepo.db";
|
||||
|
||||
private static final Path testDirectory = Paths.get(System.getProperty("java.io.tmpdir"), "CentralRepoDatamodelTest");
|
||||
|
Loading…
x
Reference in New Issue
Block a user