summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main/java/org
diff options
context:
space:
mode:
authorBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2019-08-22 15:15:49 +0200
committerTomasz Golabek <tomasz.golabek@nokia.com>2019-08-23 06:42:14 +0000
commit8bcc864f7e79541faad5acc04d966e10fc10c398 (patch)
treeafb646ec36c74b700689f988f6ccb55d99a4c2b7 /common-app-api/src/main/java/org
parent5c55e23700716698d03fde052c0a89622b9f6c54 (diff)
increasing test coverage in common-app-api
Issue-ID: SDC-2326 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I7ae64864734e7246681ca6ef6d6bb71b3d3df158
Diffstat (limited to 'common-app-api/src/main/java/org')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/be/config/ConfigurationManager.java25
1 files changed, 8 insertions, 17 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/be/config/ConfigurationManager.java b/common-app-api/src/main/java/org/openecomp/sdc/be/config/ConfigurationManager.java
index f5891a089b..9920b597a1 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/be/config/ConfigurationManager.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/be/config/ConfigurationManager.java
@@ -20,6 +20,7 @@
package org.openecomp.sdc.be.config;
+import com.google.common.annotations.VisibleForTesting;
import org.openecomp.sdc.common.api.BasicConfiguration;
import org.openecomp.sdc.common.api.ConfigurationListener;
import org.openecomp.sdc.common.api.ConfigurationSource;
@@ -32,6 +33,12 @@ import java.util.Map;
public class ConfigurationManager implements FileChangeCallback, IEcompConfigurationManager {
+ @VisibleForTesting
+ public ConfigurationManager() {
+ super();
+ instance = this;
+ }
+
private ConfigurationSource configurationSource = null;
private static ConfigurationManager instance;
@@ -125,23 +132,7 @@ public class ConfigurationManager implements FileChangeCallback, IEcompConfigura
return instance;
}
- public void reconfigure(BasicConfiguration obj) {
-
- // if (obj != null) {
-
- // if (obj instanceof Configuration) {
- // configurations.put(getKey(Configuration.class), obj);
- // }
- // if (obj instanceof ErrorConfiguration) {
- // configurations.put(getKey(ErrorConfiguration.class), obj);
- // }
- //
- // if (obj instanceof EcompErrorConfiguration) {
- // configurations.put(getKey(EcompErrorConfiguration.class), obj);
- // }
- // }
-
- }
+ public void reconfigure(BasicConfiguration obj) { }
/**
* FOR TEST ONLY