From 576e6a47f049a2cf6823ae070d7c03db15dd5e76 Mon Sep 17 00:00:00 2001 From: Tomasz Golabek Date: Tue, 3 Sep 2019 16:08:37 +0200 Subject: unit tests - openecomp-sdc Additional junit tests mostly for pojos Change-Id: I851d7df94b1e1c225d087b8881c3c1cd30867efb Issue-ID: SDC-2326 Signed-off-by: Tomasz Golabek --- .../java/org/openecomp/sdc/healing/healers/ComponentDataHealer.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java') 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 componentEntities = -- cgit 1.2.3-korg