summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorricharv <richard.vondadelszen@amdocs.com>2018-02-07 12:18:08 -0500
committerricharv <richard.vondadelszen@amdocs.com>2018-02-07 12:18:42 -0500
commita23ea1abfc73e3baca3bbf982de1caffbb2f94cf (patch)
tree3211997f473cedbd103762a8576beb374f8787ce /src/main/java
parentfc82c51d2a399813bfb55ede8ab341400dfce03a (diff)
Increasing test coverage
Issue-ID: AAI-741 Change-Id: Iecc07f9d4ff78c3ffde00ef5bb387a975289ce83 Signed-off-by: richarv <richard.vondadelszen@amdocs.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/onap/aai/sparky/search/filters/config/FiltersConfig.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main/java/org/onap/aai/sparky/search/filters/config/FiltersConfig.java b/src/main/java/org/onap/aai/sparky/search/filters/config/FiltersConfig.java
index 75b92e7..5ab373c 100644
--- a/src/main/java/org/onap/aai/sparky/search/filters/config/FiltersConfig.java
+++ b/src/main/java/org/onap/aai/sparky/search/filters/config/FiltersConfig.java
@@ -49,6 +49,14 @@ public class FiltersConfig {
public FiltersConfig() {
initializeFilters();
}
+
+ public FiltersConfig(String filtersFileName, String filterMappingsFileName) {
+ this.filtersFileName = filtersFileName;
+ this.filterMappingsFileName = filterMappingsFileName;
+
+ viewsConfig = this.readUiViewsConfig();
+ filtersConfig = this.readUiFiltersConfig();
+ }
/**
* Initialize config.
@@ -103,7 +111,7 @@ public class FiltersConfig {
this.filtersConfig = filtersConfig;
}
- public FiltersDetailsConfig readUiFiltersConfig(){
+ public FiltersDetailsConfig readUiFiltersConfig() {
ObjectMapper mapper = new ObjectMapper();
FiltersDetailsConfig filtersConfig = null;
try{
@@ -115,7 +123,7 @@ public class FiltersConfig {
return filtersConfig;
}
- public FiltersForViewsConfig readUiViewsConfig(){
+ public FiltersForViewsConfig readUiViewsConfig() {
ObjectMapper mapper = new ObjectMapper();
FiltersForViewsConfig viewsConfig = null;