mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +00:00
Merged in develop and addressed codacy
This commit is contained in:
parent
a48f5ba966
commit
0775c238ea
@ -66,11 +66,9 @@ public class CentralRepoAccountsTest extends TestCase {
|
||||
sqliteSettings.setDbName(CR_DB_NAME);
|
||||
sqliteSettings.setDbDirectory(testDirectory.toString());
|
||||
|
||||
if (!sqliteSettings.dbDirectoryExists()) {
|
||||
if (!sqliteSettings.createDbDirectory()) {
|
||||
if (!sqliteSettings.dbDirectoryExists() && !sqliteSettings.createDbDirectory()) {
|
||||
Assert.fail("Failed to create central repo directory.");
|
||||
}
|
||||
}
|
||||
|
||||
RdbmsCentralRepoFactory factory = new RdbmsCentralRepoFactory(CentralRepoPlatforms.SQLITE, sqliteSettings);
|
||||
if (!factory.initializeDatabaseSchema() || !factory.insertDefaultDatabaseContent()) {
|
||||
|
@ -220,7 +220,7 @@ class InterCaseTestUtils {
|
||||
this.kitchenShink = new IngestJobSettings(InterCaseTestUtils.class.getCanonicalName(), IngestType.ALL_MODULES, kitchenSink);
|
||||
|
||||
try {
|
||||
Collection<CorrelationAttributeInstance.Type> types = CentralRepository.getInstance().getCorrelationTypes();
|
||||
Collection<CorrelationAttributeInstance.Type> types = CentralRepository.getInstance().getDefinedCorrelationTypes();
|
||||
|
||||
//TODO use ids instead of strings
|
||||
FILE_TYPE = types.stream().filter(type -> type.getDisplayName().equals("Files")).findAny().get();
|
||||
|
Loading…
x
Reference in New Issue
Block a user