diff options
author | richarv <richard.vondadelszen@amdocs.com> | 2018-02-07 12:18:08 -0500 |
---|---|---|
committer | richarv <richard.vondadelszen@amdocs.com> | 2018-02-07 12:18:42 -0500 |
commit | a23ea1abfc73e3baca3bbf982de1caffbb2f94cf (patch) | |
tree | 3211997f473cedbd103762a8576beb374f8787ce /src/main | |
parent | fc82c51d2a399813bfb55ede8ab341400dfce03a (diff) |
Increasing test coverage
Issue-ID: AAI-741
Change-Id: Iecc07f9d4ff78c3ffde00ef5bb387a975289ce83
Signed-off-by: richarv <richard.vondadelszen@amdocs.com>
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/onap/aai/sparky/search/filters/config/FiltersConfig.java | 12 |
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; |