summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main
diff options
context:
space:
mode:
authorTomasz Golabek <tomasz.golabek@nokia.com>2019-09-03 16:08:37 +0200
committerPiotr Darosz <piotr.darosz@nokia.com>2019-09-04 05:36:55 +0000
commit576e6a47f049a2cf6823ae070d7c03db15dd5e76 (patch)
treef0eb3b57967b0c87ca22cafde45db818dea7dc58 /openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main
parent7de4f3e788ff2b71936ae43be7dfbdf48740f9be (diff)
unit tests - openecomp-sdc
Additional junit tests mostly for pojos Change-Id: I851d7df94b1e1c225d087b8881c3c1cd30867efb Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
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/ComponentDataHealer.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ComponentDataHealer.java b/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ComponentDataHealer.java
index da3ad81d58..1e6299ce17 100644
--- a/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ComponentDataHealer.java
+++ b/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ComponentDataHealer.java
@@ -16,6 +16,7 @@
package org.openecomp.sdc.healing.healers;
+import com.google.common.annotations.VisibleForTesting;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import org.apache.commons.lang.StringUtils;
@@ -40,6 +41,11 @@ public class ComponentDataHealer implements Healer {
this.componentDao = ComponentDaoFactory.getInstance().createInterface();
}
+ @VisibleForTesting
+ ComponentDataHealer(ComponentDao componentDao) {
+ this.componentDao = componentDao;
+ }
+
@Override
public boolean isHealingNeeded(String itemId, Version version) {
final Collection<ComponentEntity> componentEntities =