summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main
diff options
context:
space:
mode:
authorAvi Gaffa <avi.gaffa@amdocs.com>2017-11-14 16:08:34 +0000
committerGerrit Code Review <gerrit@onap.org>2017-11-14 16:08:34 +0000
commitb6e88fe3fb33b4f21b49a4676c4b96e4dad4ffc8 (patch)
tree35b2fda18608096d1a0e7af3cf1819f0f3408db0 /openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main
parentfb8f64baf545965b312c6a86450f621995f29484 (diff)
parentedf44a7fcc351eb304bc2f84e8d71414014cb0c0 (diff)
Merge "forwarder test"
Diffstat (limited to 'openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main')
-rw-r--r--openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ForwarderCapabilityHealer.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ForwarderCapabilityHealer.java b/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ForwarderCapabilityHealer.java
index 038a0d889a..c2d7c2c5e4 100644
--- a/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ForwarderCapabilityHealer.java
+++ b/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ForwarderCapabilityHealer.java
@@ -28,12 +28,23 @@ public class ForwarderCapabilityHealer implements Healer {
private MdcDataDebugMessage mdcDataDebugMessage = new MdcDataDebugMessage();
- private final ServiceModelDao<ToscaServiceModel, ServiceElement> serviceModelDao =
- ServiceModelDaoFactory.getInstance().createInterface();
+ private final ServiceModelDao<ToscaServiceModel, ServiceElement> serviceModelDao;
private static ToscaAnalyzerService toscaAnalyzerService = new ToscaAnalyzerServiceImpl();
private static final String FORWARDER_CAPABILITY_ID = "Forwarder";
private static final String UNDERSCORE = "_";
+ public ForwarderCapabilityHealer() {
+ this.serviceModelDao =
+ ServiceModelDaoFactory.getInstance().createInterface();
+ }
+
+ public ForwarderCapabilityHealer(ServiceModelDao<ToscaServiceModel, ServiceElement>
+ serviceModelDao,
+ ToscaAnalyzerService toscaAnalyzerService){
+ this.serviceModelDao = serviceModelDao;
+ this.toscaAnalyzerService = toscaAnalyzerService;
+ }
+
@Override
public Object heal(Map<String, Object> healingParams) throws Exception {
String vspId = (String) healingParams.get(SdcCommon.VSP_ID);