diff options
author | talio <tali.orenbach@amdocs.com> | 2017-11-14 16:07:58 +0200 |
---|---|---|
committer | talio <tali.orenbach@amdocs.com> | 2017-11-14 16:17:02 +0200 |
commit | edf44a7fcc351eb304bc2f84e8d71414014cb0c0 (patch) | |
tree | 59eaf70cbb1e063c6bfddc0e60690ce4b79e68ab /openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java | |
parent | 316bb2532b2d012b126402ceead0365192cf1008 (diff) |
forwarder test
add unit tests for forwarder healer
Issue-Id : SDC-653
Change-Id: I06954e855aac09d16422929203926aa983269b92
Signed-off-by: talio <tali.orenbach@amdocs.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java')
-rw-r--r-- | openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ForwarderCapabilityHealer.java | 15 |
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); |