diff options
author | vasraz <vasyl.razinkov@est.tech> | 2020-03-24 16:26:06 +0000 |
---|---|---|
committer | Vasyl Razinkov <vasyl.razinkov@est.tech> | 2020-03-24 16:27:01 +0000 |
commit | 201ca6fe0775995ff574c0eabbbea65f368a42be (patch) | |
tree | f92c16396c8756c8e0c15129bf958781f657066e /catalog-model/src/main/java/org | |
parent | e224d76e1558a31818badc60af59dc02e0fb268a (diff) |
Increase test coverage
Change-Id: I08577d28ced96f945d5ecfc3a19fb4f46d44ec02
Issue-ID: SDC-2833
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Diffstat (limited to 'catalog-model/src/main/java/org')
2 files changed, 23 insertions, 33 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/MapInterfaceDataDefinition.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/MapInterfaceDataDefinition.java index c58131f542..4d25ad3743 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/MapInterfaceDataDefinition.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/MapInterfaceDataDefinition.java @@ -18,25 +18,20 @@ package org.openecomp.sdc.be.model; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Map; import org.openecomp.sdc.be.datatypes.elements.InterfaceDataDefinition; import org.openecomp.sdc.be.datatypes.elements.MapDataDefinition; -import java.util.Map; - public class MapInterfaceDataDefinition extends MapDataDefinition<InterfaceDataDefinition> { - public MapInterfaceDataDefinition() { - - } - - @JsonCreator - public MapInterfaceDataDefinition(Map<String, InterfaceDataDefinition > mapToscaDataDefinition) { - super(mapToscaDataDefinition); - } + @JsonCreator + public MapInterfaceDataDefinition(Map<String, InterfaceDataDefinition> mapToscaDataDefinition) { + super(mapToscaDataDefinition); + } - @JsonValue - @Override - public Map<String, InterfaceDataDefinition> getMapToscaDataDefinition() { - return mapToscaDataDefinition; - } + @JsonValue + @Override + public Map<String, InterfaceDataDefinition> getMapToscaDataDefinition() { + return mapToscaDataDefinition; + } } diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/MapInterfaceInstanceDataDefinition.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/MapInterfaceInstanceDataDefinition.java index 6efa0ed404..47db902319 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/MapInterfaceInstanceDataDefinition.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/MapInterfaceInstanceDataDefinition.java @@ -18,26 +18,21 @@ package org.openecomp.sdc.be.model; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Map; import org.openecomp.sdc.be.datatypes.elements.InterfaceInstanceDataDefinition; import org.openecomp.sdc.be.datatypes.elements.MapDataDefinition; -import java.util.Map; - public class MapInterfaceInstanceDataDefinition extends - MapDataDefinition<InterfaceInstanceDataDefinition> { - - public MapInterfaceInstanceDataDefinition() { - - } - - @JsonCreator - public MapInterfaceInstanceDataDefinition(Map<String, InterfaceInstanceDataDefinition> mapToscaDataDefinition) { - super(mapToscaDataDefinition); - } - - @JsonValue - @Override - public Map<String, InterfaceInstanceDataDefinition> getMapToscaDataDefinition() { - return mapToscaDataDefinition; - } + MapDataDefinition<InterfaceInstanceDataDefinition> { + + @JsonCreator + public MapInterfaceInstanceDataDefinition(Map<String, InterfaceInstanceDataDefinition> mapToscaDataDefinition) { + super(mapToscaDataDefinition); + } + + @JsonValue + @Override + public Map<String, InterfaceInstanceDataDefinition> getMapToscaDataDefinition() { + return mapToscaDataDefinition; + } } |