mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-16 09:47:42 +00:00
fixes
This commit is contained in:
parent
75297a7a0c
commit
ca2f72cd23
@ -129,7 +129,9 @@ public class IntegrationTestService {
|
|||||||
EnvConfig envConfig = config.getEnvConfig();
|
EnvConfig envConfig = config.getEnvConfig();
|
||||||
|
|
||||||
// iterate through test suites if any exist
|
// iterate through test suites if any exist
|
||||||
if (!CollectionUtils.isEmpty(config.getTestSuites())) {
|
if (CollectionUtils.isEmpty(config.getTestSuites())) {
|
||||||
|
logger.log(Level.WARNING, "No test suites discovered. No tests will be run.");
|
||||||
|
} else {
|
||||||
for (TestSuiteConfig testSuiteConfig : config.getTestSuites()) {
|
for (TestSuiteConfig testSuiteConfig : config.getTestSuites()) {
|
||||||
for (CaseType caseType : IntegrationCaseType.getCaseTypes(testSuiteConfig.getCaseTypes())) {
|
for (CaseType caseType : IntegrationCaseType.getCaseTypes(testSuiteConfig.getCaseTypes())) {
|
||||||
try {
|
try {
|
||||||
|
@ -50,7 +50,7 @@ public class IntegrationTestConfig {
|
|||||||
* @return A list of test suite configurations.
|
* @return A list of test suite configurations.
|
||||||
*/
|
*/
|
||||||
public List<TestSuiteConfig> getTestSuites() {
|
public List<TestSuiteConfig> getTestSuites() {
|
||||||
return Collections.unmodifiableList(testSuites);
|
return testSuites == null ? Collections.emptyList() : Collections.unmodifiableList(testSuites);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -206,6 +206,6 @@ public class ParameterizedResourceConfig {
|
|||||||
* long, double, string.
|
* long, double, string.
|
||||||
*/
|
*/
|
||||||
public Map<String, Object> getParameters() {
|
public Map<String, Object> getParameters() {
|
||||||
return Collections.unmodifiableMap(parameters);
|
return parameters == null ? Collections.emptyMap() : Collections.unmodifiableMap(parameters);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ public class TestSuiteConfig {
|
|||||||
* @return The data sources to be ingested.
|
* @return The data sources to be ingested.
|
||||||
*/
|
*/
|
||||||
public List<String> getDataSources() {
|
public List<String> getDataSources() {
|
||||||
return Collections.unmodifiableList(dataSources);
|
return dataSources == null ? Collections.emptyList() : Collections.unmodifiableList(dataSources);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -90,7 +90,7 @@ public class TestSuiteConfig {
|
|||||||
* environment.
|
* environment.
|
||||||
*/
|
*/
|
||||||
public List<ParameterizedResourceConfig> getConfigurationModules() {
|
public List<ParameterizedResourceConfig> getConfigurationModules() {
|
||||||
return Collections.unmodifiableList(configurationModules);
|
return configurationModules == null ? Collections.emptyList() : Collections.unmodifiableList(configurationModules);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -79,7 +79,7 @@ public class TestingConfig {
|
|||||||
* will be used. If that is not specified, all tests will be run.
|
* will be used. If that is not specified, all tests will be run.
|
||||||
*/
|
*/
|
||||||
public Set<ParameterizedResourceConfig> getExcludeAllExcept() {
|
public Set<ParameterizedResourceConfig> getExcludeAllExcept() {
|
||||||
return new HashSet<>(excludeAllExcept.values());
|
return excludeAllExcept == null ? Collections.emptySet() : new HashSet<>(excludeAllExcept.values());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -88,7 +88,7 @@ public class TestingConfig {
|
|||||||
* will be run.
|
* will be run.
|
||||||
*/
|
*/
|
||||||
public Set<String> getIncludeAllExcept() {
|
public Set<String> getIncludeAllExcept() {
|
||||||
return Collections.unmodifiableSet(includeAllExcept);
|
return includeAllExcept == null ? Collections.emptySet() : Collections.unmodifiableSet(includeAllExcept);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user