From 8bcc864f7e79541faad5acc04d966e10fc10c398 Mon Sep 17 00:00:00 2001 From: Bartosz Gardziejewski Date: Thu, 22 Aug 2019 15:15:49 +0200 Subject: increasing test coverage in common-app-api Issue-ID: SDC-2326 Signed-off-by: Bartosz Gardziejewski Change-Id: I7ae64864734e7246681ca6ef6d6bb71b3d3df158 --- .../sdc/be/config/ConfigurationManager.java | 25 +++++++--------------- 1 file changed, 8 insertions(+), 17 deletions(-) (limited to 'common-app-api/src/main/java/org/openecomp') 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 -- cgit 1.2.3-korg