diff options
author | xuegao <xue.gao@intl.att.com> | 2021-03-25 10:31:08 +0100 |
---|---|---|
committer | Vasyl Razinkov <vasyl.razinkov@est.tech> | 2021-03-25 16:27:18 +0000 |
commit | de9224b1ae01755c7cc46e4bdd1a50c1bc08936e (patch) | |
tree | 86369286ebb95412426a73f1e36e317040f6b2d0 /openecomp-be/lib/openecomp-sdc-translator-lib | |
parent | 7af307919d19761959a61ac64603312b3fb45b58 (diff) |
Improve test coverage
Add unit tests to improve test coverage.
Issue-ID: SDC-3428
Change-Id: I47da0decd6b6df93ace68b2af586b255ef0b792e
Signed-off-by: xuegao <xue.gao@intl.att.com>
Diffstat (limited to 'openecomp-be/lib/openecomp-sdc-translator-lib')
1 files changed, 7 insertions, 49 deletions
diff --git a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/main/java/org/openecomp/sdc/translator/datatypes/heattotosca/unifiedmodel/composition/to/UnifiedCompositionTo.java b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/main/java/org/openecomp/sdc/translator/datatypes/heattotosca/unifiedmodel/composition/to/UnifiedCompositionTo.java index 30c89accd0..6ac12a0642 100644 --- a/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/main/java/org/openecomp/sdc/translator/datatypes/heattotosca/unifiedmodel/composition/to/UnifiedCompositionTo.java +++ b/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/main/java/org/openecomp/sdc/translator/datatypes/heattotosca/unifiedmodel/composition/to/UnifiedCompositionTo.java @@ -16,11 +16,18 @@ package org.openecomp.sdc.translator.datatypes.heattotosca.unifiedmodel.composition.to; import java.util.List; + +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.Setter; import org.onap.sdc.tosca.datatypes.model.NodeTemplate; import org.onap.sdc.tosca.datatypes.model.ServiceTemplate; import org.openecomp.sdc.translator.datatypes.heattotosca.TranslationContext; import org.openecomp.sdc.translator.datatypes.heattotosca.unifiedmodel.composition.UnifiedCompositionData; +@Getter +@Setter +@AllArgsConstructor public class UnifiedCompositionTo { private ServiceTemplate serviceTemplate; @@ -28,53 +35,4 @@ public class UnifiedCompositionTo { private List<UnifiedCompositionData> unifiedCompositionDataList; private TranslationContext context; private NodeTemplate nodeTemplate; - - public UnifiedCompositionTo(ServiceTemplate serviceTemplate, ServiceTemplate substitutionServiceTemplate, - List<UnifiedCompositionData> unifiedCompositionDataList, TranslationContext context, NodeTemplate nodeTemplate) { - this.serviceTemplate = serviceTemplate; - this.substitutionServiceTemplate = substitutionServiceTemplate; - this.unifiedCompositionDataList = unifiedCompositionDataList; - this.context = context; - this.nodeTemplate = nodeTemplate; - } - - public ServiceTemplate getServiceTemplate() { - return serviceTemplate; - } - - public void setServiceTemplate(ServiceTemplate serviceTemplate) { - this.serviceTemplate = serviceTemplate; - } - - public ServiceTemplate getSubstitutionServiceTemplate() { - return substitutionServiceTemplate; - } - - public void setSubstitutionServiceTemplate(ServiceTemplate substitutionServiceTemplate) { - this.substitutionServiceTemplate = substitutionServiceTemplate; - } - - public List<UnifiedCompositionData> getUnifiedCompositionDataList() { - return unifiedCompositionDataList; - } - - public void setUnifiedCompositionDataList(List<UnifiedCompositionData> unifiedCompositionDataList) { - this.unifiedCompositionDataList = unifiedCompositionDataList; - } - - public TranslationContext getContext() { - return context; - } - - public void setContext(TranslationContext context) { - this.context = context; - } - - public NodeTemplate getNodeTemplate() { - return nodeTemplate; - } - - public void setNodeTemplate(NodeTemplate nodeTemplate) { - this.nodeTemplate = nodeTemplate; - } } |