From 6387653c4058694b0cb6bf53efc64e79918b87e2 Mon Sep 17 00:00:00 2001 From: xuegao Date: Thu, 11 Mar 2021 20:04:46 +0100 Subject: Adding unit tests Adding unit tests to improve test coverage. Issue-ID: SDC-3428 Signed-off-by: xuegao Change-Id: I685f01886b314dea9b8507afd93937e070d7501d --- .../java/org/openecomp/sdc/enrichment/inter/Enricher.java | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'openecomp-be/lib/openecomp-sdc-enrichment-lib') diff --git a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/main/java/org/openecomp/sdc/enrichment/inter/Enricher.java b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/main/java/org/openecomp/sdc/enrichment/inter/Enricher.java index 8e66887c1e..cc3a0d5186 100644 --- a/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/main/java/org/openecomp/sdc/enrichment/inter/Enricher.java +++ b/openecomp-be/lib/openecomp-sdc-enrichment-lib/openecomp-sdc-enrichment-impl/src/main/java/org/openecomp/sdc/enrichment/inter/Enricher.java @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -21,6 +21,7 @@ package org.openecomp.sdc.enrichment.inter; +import lombok.Setter; import org.openecomp.sdc.datatypes.error.ErrorMessage; import org.openecomp.sdc.datatypes.model.AsdcModel; import org.openecomp.sdc.enrichment.EnrichmentInfo; @@ -28,19 +29,12 @@ import org.openecomp.sdc.enrichment.EnrichmentInfo; import java.util.List; import java.util.Map; +@Setter public abstract class Enricher { protected EnrichmentInfo data; protected AsdcModel model; - public void setData(EnrichmentInfo data) { - this.data = data; - } - - public void setModel(AsdcModel model) { - this.model = model; - } - public abstract Map> enrich() throws Exception; } -- cgit 1.2.3-korg