diff options
author | Yuli Shlosberg <ys9693@att.com> | 2017-10-17 16:38:07 +0300 |
---|---|---|
committer | Yuli Shlosberg <ys9693@att.com> | 2017-10-22 08:30:44 +0000 |
commit | 56f02056947bd1bfd4310c86401113062cf3a74e (patch) | |
tree | 4b2afee29fc0a5aa5b88696903a6b9f68c5cf4f0 /catalog-model/src/test | |
parent | bc077839a99429fede9cb027f58a209e72f81ba6 (diff) |
add unit tests to BE components
Change-Id: Ic22f03832f1810f51958db2e7dba5569a9bf1cd7
Issue-Id: SDC-467
Signed-off-by: Yuli Shlosberg <ys9693@att.com>
(cherry picked from commit 031b1e4dc965195624fb0c574376cba1b0c57488)
Diffstat (limited to 'catalog-model/src/test')
25 files changed, 2281 insertions, 0 deletions
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/AdditionalInformationDefinitionTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/AdditionalInformationDefinitionTest.java index f20b7f35c4..67e5280f53 100644 --- a/catalog-model/src/test/java/org/openecomp/sdc/be/model/AdditionalInformationDefinitionTest.java +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/AdditionalInformationDefinitionTest.java @@ -3,6 +3,8 @@ package org.openecomp.sdc.be.model; import javax.annotation.Generated; import org.junit.Test; +import java.util.*; +import org.junit.Assert; public class AdditionalInformationDefinitionTest { diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/ArtifactUiDownloadDataTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ArtifactUiDownloadDataTest.java new file mode 100644 index 0000000000..6df1079f4a --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ArtifactUiDownloadDataTest.java @@ -0,0 +1,56 @@ +package org.openecomp.sdc.be.model; + +import javax.annotation.Generated; + +import org.junit.Test; + +public class ArtifactUiDownloadDataTest { + + private ArtifactUiDownloadData createTestSubject() { + return new ArtifactUiDownloadData(); + } + + + @Test + public void testSetArtifactName() throws Exception { + ArtifactUiDownloadData testSubject; + String artifactName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setArtifactName(artifactName); + } + + + @Test + public void testSetBase64Contents() throws Exception { + ArtifactUiDownloadData testSubject; + String base64Contents = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setBase64Contents(base64Contents); + } + + + @Test + public void testGetArtifactName() throws Exception { + ArtifactUiDownloadData testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getArtifactName(); + } + + + @Test + public void testGetBase64Contents() throws Exception { + ArtifactUiDownloadData testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getBase64Contents(); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/CapReqDefTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/CapReqDefTest.java new file mode 100644 index 0000000000..d0c121fa5f --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/CapReqDefTest.java @@ -0,0 +1,60 @@ +package org.openecomp.sdc.be.model; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class CapReqDefTest { + + private CapReqDef createTestSubject() { + return new CapReqDef(); + } + + + @Test + public void testGetCapabilities() throws Exception { + CapReqDef testSubject; + Map<String, List<CapabilityDefinition>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCapabilities(); + } + + + @Test + public void testGetRequirements() throws Exception { + CapReqDef testSubject; + Map<String, List<RequirementDefinition>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRequirements(); + } + + + @Test + public void testSetCapabilities() throws Exception { + CapReqDef testSubject; + Map<String, List<CapabilityDefinition>> capabilities = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCapabilities(capabilities); + } + + + @Test + public void testSetRequirements() throws Exception { + CapReqDef testSubject; + Map<String, List<RequirementDefinition>> requirements = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRequirements(requirements); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/CapabilityDefinitionTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/CapabilityDefinitionTest.java index 7286bee4a0..007a64a75d 100644 --- a/catalog-model/src/test/java/org/openecomp/sdc/be/model/CapabilityDefinitionTest.java +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/CapabilityDefinitionTest.java @@ -5,6 +5,8 @@ import java.util.List; import javax.annotation.Generated; import org.junit.Test; +import java.util.*; +import org.junit.Assert; public class CapabilityDefinitionTest { diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/ComponentInstInputsMapTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ComponentInstInputsMapTest.java new file mode 100644 index 0000000000..af9f683193 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ComponentInstInputsMapTest.java @@ -0,0 +1,59 @@ +package org.openecomp.sdc.be.model; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Test; + +public class ComponentInstInputsMapTest { + + private ComponentInstInputsMap createTestSubject() { + return new ComponentInstInputsMap(); + } + + + @Test + public void testGetComponentInstanceInputsMap() throws Exception { + ComponentInstInputsMap testSubject; + Map<String, List<ComponentInstancePropInput>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getComponentInstanceInputsMap(); + } + + + @Test + public void testSetComponentInstanceInputsMap() throws Exception { + ComponentInstInputsMap testSubject; + Map<String, List<ComponentInstancePropInput>> componentInstanceInputsMap = null; + + // default test + testSubject = createTestSubject(); + testSubject.setComponentInstanceInputsMap(componentInstanceInputsMap); + } + + + @Test + public void testGetComponentInstanceProperties() throws Exception { + ComponentInstInputsMap testSubject; + Map<String, List<ComponentInstancePropInput>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getComponentInstanceProperties(); + } + + + @Test + public void testSetComponentInstancePropInput() throws Exception { + ComponentInstInputsMap testSubject; + Map<String, List<ComponentInstancePropInput>> componentInstanceProperties = null; + + // default test + testSubject = createTestSubject(); + testSubject.setComponentInstancePropInput(componentInstanceProperties); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/ComponentInstanceInputTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ComponentInstanceInputTest.java new file mode 100644 index 0000000000..07eea5584c --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ComponentInstanceInputTest.java @@ -0,0 +1,137 @@ +package org.openecomp.sdc.be.model; + +import java.util.List; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.datatypes.elements.PropertyRule; + + +public class ComponentInstanceInputTest { + + private ComponentInstanceInput createTestSubject() { + return new ComponentInstanceInput(); + } + + + @Test + public void testGetComponentInstanceName() throws Exception { + ComponentInstanceInput testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getComponentInstanceName(); + } + + + @Test + public void testSetComponentInstanceName() throws Exception { + ComponentInstanceInput testSubject; + String componentInstanceName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setComponentInstanceName(componentInstanceName); + } + + + @Test + public void testGetComponentInstanceId() throws Exception { + ComponentInstanceInput testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getComponentInstanceId(); + } + + + @Test + public void testSetComponentInstanceId() throws Exception { + ComponentInstanceInput testSubject; + String componentInstanceId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setComponentInstanceId(componentInstanceId); + } + + + @Test + public void testGetValueUniqueUid() throws Exception { + ComponentInstanceInput testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getValueUniqueUid(); + } + + + @Test + public void testSetValueUniqueUid() throws Exception { + ComponentInstanceInput testSubject; + String valueUniqueUid = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setValueUniqueUid(valueUniqueUid); + } + + + @Test + public void testGetPath() throws Exception { + ComponentInstanceInput testSubject; + List<String> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPath(); + } + + + @Test + public void testSetPath() throws Exception { + ComponentInstanceInput testSubject; + List<String> path = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPath(path); + } + + + @Test + public void testGetRules() throws Exception { + ComponentInstanceInput testSubject; + List<PropertyRule> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRules(); + } + + + @Test + public void testSetRules() throws Exception { + ComponentInstanceInput testSubject; + List<PropertyRule> rules = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRules(rules); + } + + + @Test + public void testToString() throws Exception { + ComponentInstanceInput testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/ComponentInstancePropInputTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ComponentInstancePropInputTest.java new file mode 100644 index 0000000000..69b3f25f5e --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ComponentInstancePropInputTest.java @@ -0,0 +1,68 @@ +package org.openecomp.sdc.be.model; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class ComponentInstancePropInputTest { + + private ComponentInstancePropInput createTestSubject() { + return new ComponentInstancePropInput(); + } + + + @Test + public void testGetPropertiesName() throws Exception { + ComponentInstancePropInput testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPropertiesName(); + } + + + @Test + public void testSetPropertiesName() throws Exception { + ComponentInstancePropInput testSubject; + String propertiesName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setPropertiesName(propertiesName); + } + + + @Test + public void testGetInput() throws Exception { + ComponentInstancePropInput testSubject; + PropertyDefinition result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInput(); + } + + + @Test + public void testSetInput() throws Exception { + ComponentInstancePropInput testSubject; + PropertyDefinition input = null; + + // default test + testSubject = createTestSubject(); + testSubject.setInput(input); + } + + + @Test + public void testGetParsedPropNames() throws Exception { + ComponentInstancePropInput testSubject; + String[] result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getParsedPropNames(); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/ComponentInstancePropertyTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ComponentInstancePropertyTest.java new file mode 100644 index 0000000000..4718847559 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ComponentInstancePropertyTest.java @@ -0,0 +1,137 @@ +package org.openecomp.sdc.be.model; + +import java.util.List; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.datatypes.elements.PropertyRule; + + +public class ComponentInstancePropertyTest { + + private ComponentInstanceProperty createTestSubject() { + return new ComponentInstanceProperty(); + } + + + @Test + public void testGetComponentInstanceName() throws Exception { + ComponentInstanceProperty testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getComponentInstanceName(); + } + + + @Test + public void testSetComponentInstanceName() throws Exception { + ComponentInstanceProperty testSubject; + String componentInstanceName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setComponentInstanceName(componentInstanceName); + } + + + @Test + public void testGetComponentInstanceId() throws Exception { + ComponentInstanceProperty testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getComponentInstanceId(); + } + + + @Test + public void testSetComponentInstanceId() throws Exception { + ComponentInstanceProperty testSubject; + String componentInstanceId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setComponentInstanceId(componentInstanceId); + } + + + @Test + public void testGetValueUniqueUid() throws Exception { + ComponentInstanceProperty testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getValueUniqueUid(); + } + + + @Test + public void testSetValueUniqueUid() throws Exception { + ComponentInstanceProperty testSubject; + String valueUniqueUid = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setValueUniqueUid(valueUniqueUid); + } + + + @Test + public void testGetPath() throws Exception { + ComponentInstanceProperty testSubject; + List<String> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPath(); + } + + + @Test + public void testSetPath() throws Exception { + ComponentInstanceProperty testSubject; + List<String> path = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPath(path); + } + + + @Test + public void testGetRules() throws Exception { + ComponentInstanceProperty testSubject; + List<PropertyRule> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRules(); + } + + + @Test + public void testSetRules() throws Exception { + ComponentInstanceProperty testSubject; + List<PropertyRule> rules = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRules(rules); + } + + + @Test + public void testToString() throws Exception { + ComponentInstanceProperty testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/CsarInfoTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/CsarInfoTest.java new file mode 100644 index 0000000000..31864c479c --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/CsarInfoTest.java @@ -0,0 +1,203 @@ +package org.openecomp.sdc.be.model; + +import java.util.Map; +import java.util.Queue; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class CsarInfoTest { + + private CsarInfo createTestSubject() { + return new CsarInfo("", new User(), "", null, "", false); + } + + + @Test + public void testGetVfResourceName() throws Exception { + CsarInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getVfResourceName(); + } + + + @Test + public void testSetVfResourceName() throws Exception { + CsarInfo testSubject; + String vfResourceName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setVfResourceName(vfResourceName); + } + + + @Test + public void testGetModifier() throws Exception { + CsarInfo testSubject; + User result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getModifier(); + } + + + @Test + public void testSetModifier() throws Exception { + CsarInfo testSubject; + User modifier = null; + + // default test + testSubject = createTestSubject(); + testSubject.setModifier(modifier); + } + + + @Test + public void testGetCsarUUID() throws Exception { + CsarInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCsarUUID(); + } + + + @Test + public void testSetCsarUUID() throws Exception { + CsarInfo testSubject; + String csarUUID = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCsarUUID(csarUUID); + } + + + @Test + public void testGetCsar() throws Exception { + CsarInfo testSubject; + Map<String, byte[]> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCsar(); + } + + + @Test + public void testSetCsar() throws Exception { + CsarInfo testSubject; + Map<String, byte[]> csar = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCsar(csar); + } + + + @Test + public void testGetMainTemplateContent() throws Exception { + CsarInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMainTemplateContent(); + } + + + @Test + public void testGetMappedToscaMainTemplate() throws Exception { + CsarInfo testSubject; + Map<String, Object> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMappedToscaMainTemplate(); + } + + + @Test + public void testGetCreatedNodesToscaResourceNames() throws Exception { + CsarInfo testSubject; + Map<String, String> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCreatedNodesToscaResourceNames(); + } + + + @Test + public void testSetCreatedNodesToscaResourceNames() throws Exception { + CsarInfo testSubject; + Map<String, String> createdNodesToscaResourceNames = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCreatedNodesToscaResourceNames(createdNodesToscaResourceNames); + } + + + @Test + public void testGetCvfcToCreateQueue() throws Exception { + CsarInfo testSubject; + Queue<String> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCvfcToCreateQueue(); + } + + + @Test + public void testSetCvfcToCreateQueue() throws Exception { + CsarInfo testSubject; + Queue<String> cvfcToCreateQueue = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCvfcToCreateQueue(cvfcToCreateQueue); + } + + + @Test + public void testIsUpdate() throws Exception { + CsarInfo testSubject; + boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.isUpdate(); + } + + + @Test + public void testSetUpdate() throws Exception { + CsarInfo testSubject; + boolean isUpdate = false; + + // default test + testSubject = createTestSubject(); + testSubject.setUpdate(isUpdate); + } + + + @Test + public void testGetCreatedNodes() throws Exception { + CsarInfo testSubject; + Map<String, Resource> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCreatedNodes(); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/DataTypeDefinitionTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/DataTypeDefinitionTest.java index 26db09fb4f..996e3a7bd8 100644 --- a/catalog-model/src/test/java/org/openecomp/sdc/be/model/DataTypeDefinitionTest.java +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/DataTypeDefinitionTest.java @@ -5,6 +5,8 @@ import java.util.List; import javax.annotation.Generated; import org.junit.Test; +import java.util.*; +import org.junit.Assert; public class DataTypeDefinitionTest { diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/FunctionalMenuInfoTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/FunctionalMenuInfoTest.java new file mode 100644 index 0000000000..3df5b58955 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/FunctionalMenuInfoTest.java @@ -0,0 +1,46 @@ +package org.openecomp.sdc.be.model; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class FunctionalMenuInfoTest { + + private FunctionalMenuInfo createTestSubject() { + return new FunctionalMenuInfo(); + } + + + @Test + public void testGetFunctionalMenu() throws Exception { + FunctionalMenuInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFunctionalMenu(); + } + + + @Test + public void testSetFunctionalMenu() throws Exception { + FunctionalMenuInfo testSubject; + String functionalMenu = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFunctionalMenu(functionalMenu); + } + + + @Test + public void testToString() throws Exception { + FunctionalMenuInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/GroupPropertyTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/GroupPropertyTest.java new file mode 100644 index 0000000000..6f8f53b991 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/GroupPropertyTest.java @@ -0,0 +1,46 @@ +package org.openecomp.sdc.be.model; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class GroupPropertyTest { + + private GroupProperty createTestSubject() { + return new GroupProperty(); + } + + + @Test + public void testGetValueUniqueUid() throws Exception { + GroupProperty testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getValueUniqueUid(); + } + + + @Test + public void testSetValueUniqueUid() throws Exception { + GroupProperty testSubject; + String valueUniqueUid = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setValueUniqueUid(valueUniqueUid); + } + + + @Test + public void testToString() throws Exception { + GroupProperty testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/GroupTypeDefinitionTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/GroupTypeDefinitionTest.java index 4fe180970b..63f9e624cb 100644 --- a/catalog-model/src/test/java/org/openecomp/sdc/be/model/GroupTypeDefinitionTest.java +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/GroupTypeDefinitionTest.java @@ -5,6 +5,8 @@ import java.util.List; import javax.annotation.Generated; import org.junit.Test; +import java.util.*; +import org.junit.Assert; public class GroupTypeDefinitionTest { diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/NodeTypeInfoTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/NodeTypeInfoTest.java new file mode 100644 index 0000000000..9a95a879df --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/NodeTypeInfoTest.java @@ -0,0 +1,137 @@ +package org.openecomp.sdc.be.model; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class NodeTypeInfoTest { + + private NodeTypeInfo createTestSubject() { + return new NodeTypeInfo(); + } + + + @Test + public void testGetUnmarkedCopy() throws Exception { + NodeTypeInfo testSubject; + NodeTypeInfo result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUnmarkedCopy(); + } + + + @Test + public void testGetType() throws Exception { + NodeTypeInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getType(); + } + + + @Test + public void testSetType() throws Exception { + NodeTypeInfo testSubject; + String type = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setType(type); + } + + + @Test + public void testGetTemplateFileName() throws Exception { + NodeTypeInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTemplateFileName(); + } + + + @Test + public void testSetTemplateFileName() throws Exception { + NodeTypeInfo testSubject; + String templateFileName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setTemplateFileName(templateFileName); + } + + + @Test + public void testGetDerivedFrom() throws Exception { + NodeTypeInfo testSubject; + List<String> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDerivedFrom(); + } + + + @Test + public void testSetDerivedFrom() throws Exception { + NodeTypeInfo testSubject; + List<String> derivedFrom = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDerivedFrom(derivedFrom); + } + + + @Test + public void testIsNested() throws Exception { + NodeTypeInfo testSubject; + boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.isNested(); + } + + + @Test + public void testSetNested() throws Exception { + NodeTypeInfo testSubject; + boolean isNested = false; + + // default test + testSubject = createTestSubject(); + testSubject.setNested(isNested); + } + + + @Test + public void testGetMappedToscaTemplate() throws Exception { + NodeTypeInfo testSubject; + Map<String, Object> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMappedToscaTemplate(); + } + + + @Test + public void testSetMappedToscaTemplate() throws Exception { + NodeTypeInfo testSubject; + Map<String, Object> mappedToscaTemplate = null; + + // default test + testSubject = createTestSubject(); + testSubject.setMappedToscaTemplate(mappedToscaTemplate); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/PointTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/PointTest.java new file mode 100644 index 0000000000..8f25cfd5e4 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/PointTest.java @@ -0,0 +1,68 @@ +package org.openecomp.sdc.be.model; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class PointTest { + + private Point createTestSubject() { + return new Point(); + } + + + @Test + public void testGetX() throws Exception { + Point testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getX(); + } + + + @Test + public void testSetX() throws Exception { + Point testSubject; + String x = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setX(x); + } + + + @Test + public void testGetY() throws Exception { + Point testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getY(); + } + + + @Test + public void testSetY() throws Exception { + Point testSubject; + String y = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setY(y); + } + + + @Test + public void testToString() throws Exception { + Point testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/ProductTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ProductTest.java new file mode 100644 index 0000000000..64ee3db41b --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ProductTest.java @@ -0,0 +1,118 @@ +package org.openecomp.sdc.be.model; + +import java.util.List; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.datatypes.elements.ProductMetadataDataDefinition; + + +public class ProductTest { + + private Product createTestSubject() { + return new Product(); + } + + + @Test + public void testGetFullName() throws Exception { + Product testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFullName(); + } + + + @Test + public void testSetFullName() throws Exception { + Product testSubject; + String fullName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setFullName(fullName); + } + + + @Test + public void testGetInvariantUUID() throws Exception { + Product testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInvariantUUID(); + } + + + @Test + public void testSetInvariantUUID() throws Exception { + Product testSubject; + String invariantUUID = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setInvariantUUID(invariantUUID); + } + + + @Test + public void testGetContacts() throws Exception { + Product testSubject; + List<String> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getContacts(); + } + + + @Test + public void testSetContacts() throws Exception { + Product testSubject; + List<String> contacts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setContacts(contacts); + } + + + @Test + public void testAddContact() throws Exception { + Product testSubject; + String contact = ""; + + // default test + testSubject = createTestSubject(); + testSubject.addContact(contact); + } + + + @Test + public void testGetIsActive() throws Exception { + Product testSubject; + Boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIsActive(); + } + + + @Test + public void testSetIsActive() throws Exception { + Product testSubject; + Boolean isActive = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIsActive(isActive); + } + + + +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementAndRelationshipPairTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementAndRelationshipPairTest.java new file mode 100644 index 0000000000..bc03848b9c --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementAndRelationshipPairTest.java @@ -0,0 +1,216 @@ +package org.openecomp.sdc.be.model; + +import javax.annotation.Generated; + +import org.junit.Assert; +import org.junit.Test; +import org.openecomp.sdc.be.datatypes.elements.RelationshipInstDataDefinition; + + +public class RequirementAndRelationshipPairTest { + + private RequirementAndRelationshipPair createTestSubject() { + return new RequirementAndRelationshipPair(); + } + + + @Test + public void testGetRequirement() throws Exception { + RequirementAndRelationshipPair testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRequirement(); + } + + + @Test + public void testSetRequirement() throws Exception { + RequirementAndRelationshipPair testSubject; + String requirement = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRequirement(requirement); + } + + + @Test + public void testGetCapabilityOwnerId() throws Exception { + RequirementAndRelationshipPair testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCapabilityOwnerId(); + } + + + @Test + public void testSetCapabilityOwnerId() throws Exception { + RequirementAndRelationshipPair testSubject; + String capabilityOwnerId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCapabilityOwnerId(capabilityOwnerId); + } + + + @Test + public void testGetRequirementOwnerId() throws Exception { + RequirementAndRelationshipPair testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRequirementOwnerId(); + } + + + @Test + public void testSetRequirementOwnerId() throws Exception { + RequirementAndRelationshipPair testSubject; + String requirementOwnerId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRequirementOwnerId(requirementOwnerId); + } + + + @Test + public void testGetRelationship() throws Exception { + RequirementAndRelationshipPair testSubject; + RelationshipImpl result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRelationship(); + } + + + @Test + public void testSetRelationships() throws Exception { + RequirementAndRelationshipPair testSubject; + RelationshipImpl relationship = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRelationships(relationship); + } + + + @Test + public void testGetCapability() throws Exception { + RequirementAndRelationshipPair testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCapability(); + } + + + @Test + public void testSetCapability() throws Exception { + RequirementAndRelationshipPair testSubject; + String capability = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCapability(capability); + } + + + @Test + public void testGetCapabilityUid() throws Exception { + RequirementAndRelationshipPair testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCapabilityUid(); + } + + + @Test + public void testSetCapabilityUid() throws Exception { + RequirementAndRelationshipPair testSubject; + String capabilityUid = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCapabilityUid(capabilityUid); + } + + + @Test + public void testGetRequirementUid() throws Exception { + RequirementAndRelationshipPair testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRequirementUid(); + } + + + @Test + public void testSetRequirementUid() throws Exception { + RequirementAndRelationshipPair testSubject; + String requirementUid = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRequirementUid(requirementUid); + } + + + @Test + public void testGetId() throws Exception { + RequirementAndRelationshipPair testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getId(); + } + + + @Test + public void testSetId() throws Exception { + RequirementAndRelationshipPair testSubject; + String id = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setId(id); + } + + + @Test + public void testToString() throws Exception { + RequirementAndRelationshipPair testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + + @Test + public void testEqualsTo() throws Exception { + RequirementAndRelationshipPair testSubject; + RelationshipInstDataDefinition savedRelation = null; + boolean result; + + // test 1 + testSubject = createTestSubject(); + savedRelation = null; + result = testSubject.equalsTo(savedRelation); + Assert.assertEquals(false, result); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementImplDefTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementImplDefTest.java new file mode 100644 index 0000000000..ea747b3a48 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementImplDefTest.java @@ -0,0 +1,114 @@ +package org.openecomp.sdc.be.model; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class RequirementImplDefTest { + + private RequirementImplDef createTestSubject() { + return new RequirementImplDef(); + } + + + @Test + public void testGetNodeId() throws Exception { + RequirementImplDef testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNodeId(); + } + + + @Test + public void testSetNodeId() throws Exception { + RequirementImplDef testSubject; + String nodeId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNodeId(nodeId); + } + + + @Test + public void testGetUniqueId() throws Exception { + RequirementImplDef testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getUniqueId(); + } + + + @Test + public void testSetUniqueId() throws Exception { + RequirementImplDef testSubject; + String uniqueId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setUniqueId(uniqueId); + } + + + @Test + public void testGetRequirementProperties() throws Exception { + RequirementImplDef testSubject; + Map<String, CapabiltyInstance> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRequirementProperties(); + } + + + @Test + public void testSetRequirementProperties() throws Exception { + RequirementImplDef testSubject; + Map<String, CapabiltyInstance> requirementProperties = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRequirementProperties(requirementProperties); + } + + + @Test + public void testGetPoint() throws Exception { + RequirementImplDef testSubject; + Point result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPoint(); + } + + + @Test + public void testSetPoint() throws Exception { + RequirementImplDef testSubject; + Point point = null; + + // default test + testSubject = createTestSubject(); + testSubject.setPoint(point); + } + + + @Test + public void testToString() throws Exception { + RequirementImplDef testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementInstanceTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementInstanceTest.java new file mode 100644 index 0000000000..72f6ee2716 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/RequirementInstanceTest.java @@ -0,0 +1,68 @@ +package org.openecomp.sdc.be.model; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class RequirementInstanceTest { + + private RequirementInstance createTestSubject() { + return new RequirementInstance(); + } + + + @Test + public void testGetNode() throws Exception { + RequirementInstance testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNode(); + } + + + @Test + public void testSetNode() throws Exception { + RequirementInstance testSubject; + String node = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNode(node); + } + + + @Test + public void testGetRelationship() throws Exception { + RequirementInstance testSubject; + RelationshipImpl result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRelationship(); + } + + + @Test + public void testSetRelationship() throws Exception { + RequirementInstance testSubject; + RelationshipImpl relationship = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRelationship(relationship); + } + + + @Test + public void testToString() throws Exception { + RequirementInstance testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/ResourceInstanceHeatParameterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ResourceInstanceHeatParameterTest.java new file mode 100644 index 0000000000..50c423b847 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/ResourceInstanceHeatParameterTest.java @@ -0,0 +1,46 @@ +package org.openecomp.sdc.be.model; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class ResourceInstanceHeatParameterTest { + + private ResourceInstanceHeatParameter createTestSubject() { + return new ResourceInstanceHeatParameter(); + } + + + @Test + public void testGetValueUniqueId() throws Exception { + ResourceInstanceHeatParameter testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getValueUniqueId(); + } + + + @Test + public void testSetValueUniqueId() throws Exception { + ResourceInstanceHeatParameter testSubject; + String valueUniqueId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setValueUniqueId(valueUniqueId); + } + + + @Test + public void testToString() throws Exception { + ResourceInstanceHeatParameter testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadCapInfoTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadCapInfoTest.java new file mode 100644 index 0000000000..655df75cc4 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadCapInfoTest.java @@ -0,0 +1,81 @@ +package org.openecomp.sdc.be.model; + +import java.util.List; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class UploadCapInfoTest { + + private UploadCapInfo createTestSubject() { + return new UploadCapInfo(); + } + + + @Test + public void testGetNode() throws Exception { + UploadCapInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNode(); + } + + + @Test + public void testSetNode() throws Exception { + UploadCapInfo testSubject; + String node = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNode(node); + } + + + @Test + public void testGetValidSourceTypes() throws Exception { + UploadCapInfo testSubject; + List<String> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getValidSourceTypes(); + } + + + @Test + public void testSetValidSourceTypes() throws Exception { + UploadCapInfo testSubject; + List<String> validSourceTypes = null; + + // default test + testSubject = createTestSubject(); + testSubject.setValidSourceTypes(validSourceTypes); + } + + + @Test + public void testGetProperties() throws Exception { + UploadCapInfo testSubject; + List<UploadPropInfo> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProperties(); + } + + + @Test + public void testSetProperties() throws Exception { + UploadCapInfo testSubject; + List<UploadPropInfo> properties = null; + + // default test + testSubject = createTestSubject(); + testSubject.setProperties(properties); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadPropInfoTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadPropInfoTest.java new file mode 100644 index 0000000000..0b3e9301cd --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadPropInfoTest.java @@ -0,0 +1,104 @@ +package org.openecomp.sdc.be.model; + +import java.util.List; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.datatypes.elements.GetInputValueDataDefinition; + + +public class UploadPropInfoTest { + + private UploadPropInfo createTestSubject() { + return new UploadPropInfo(); + } + + + @Test + public void testGetGet_input() throws Exception { + UploadPropInfo testSubject; + List<GetInputValueDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGet_input(); + } + + + @Test + public void testSetGet_input() throws Exception { + UploadPropInfo testSubject; + List<GetInputValueDataDefinition> get_input = null; + + // default test + testSubject = createTestSubject(); + testSubject.setGet_input(get_input); + } + + + @Test + public void testGetValue() throws Exception { + UploadPropInfo testSubject; + Object result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getValue(); + } + + + @Test + public void testSetValue() throws Exception { + UploadPropInfo testSubject; + Object value = null; + + // default test + testSubject = createTestSubject(); + testSubject.setValue(value); + } + + + @Test + public void testGetDescription() throws Exception { + UploadPropInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDescription(); + } + + + @Test + public void testSetDescription() throws Exception { + UploadPropInfo testSubject; + String description = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setDescription(description); + } + + + @Test + public void testIsPassword() throws Exception { + UploadPropInfo testSubject; + boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.isPassword(); + } + + + @Test + public void testSetPassword() throws Exception { + UploadPropInfo testSubject; + boolean password = false; + + // default test + testSubject = createTestSubject(); + testSubject.setPassword(password); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadReqInfoTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadReqInfoTest.java new file mode 100644 index 0000000000..eb1306c597 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/UploadReqInfoTest.java @@ -0,0 +1,57 @@ +package org.openecomp.sdc.be.model; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class UploadReqInfoTest { + + private UploadReqInfo createTestSubject() { + return new UploadReqInfo(); + } + + + @Test + public void testGetCapabilityName() throws Exception { + UploadReqInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCapabilityName(); + } + + + @Test + public void testSetCapabilityName() throws Exception { + UploadReqInfo testSubject; + String capabilityName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setCapabilityName(capabilityName); + } + + + @Test + public void testGetNode() throws Exception { + UploadReqInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNode(); + } + + + @Test + public void testSetNode() throws Exception { + UploadReqInfo testSubject; + String node = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setNode(node); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/cache/DaoInfoTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/cache/DaoInfoTest.java new file mode 100644 index 0000000000..1428a86342 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/cache/DaoInfoTest.java @@ -0,0 +1,36 @@ +package org.openecomp.sdc.be.model.cache; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.model.jsontitan.operations.ToscaOperationFacade; + + +public class DaoInfoTest { + + private DaoInfo createTestSubject() { + return new DaoInfo(new ToscaOperationFacade(), new ComponentCache()); + } + + + @Test + public void testGetToscaOperationFacade() throws Exception { + DaoInfo testSubject; + ToscaOperationFacade result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getToscaOperationFacade(); + } + + + @Test + public void testGetComponentCache() throws Exception { + DaoInfo testSubject; + ComponentCache result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getComponentCache(); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/TopologyTemplateTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/TopologyTemplateTest.java new file mode 100644 index 0000000000..bd5a16a844 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/TopologyTemplateTest.java @@ -0,0 +1,416 @@ +package org.openecomp.sdc.be.model.jsontitan.datamodel; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.datatypes.elements.ArtifactDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.ComponentInstanceDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.CompositionDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.GroupDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.MapArtifactDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.MapCapabiltyProperty; +import org.openecomp.sdc.be.datatypes.elements.MapGroupsDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.MapListCapabiltyDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.MapListRequirementDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.MapPropertiesDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.RelationshipInstDataDefinition; +import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition; + + +public class TopologyTemplateTest { + + private TopologyTemplate createTestSubject() { + return new TopologyTemplate(); + } + + + @Test + public void testGetInputs() throws Exception { + TopologyTemplate testSubject; + Map<String, PropertyDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInputs(); + } + + + @Test + public void testSetInputs() throws Exception { + TopologyTemplate testSubject; + Map<String, PropertyDataDefinition> inputs = null; + + // default test + testSubject = createTestSubject(); + testSubject.setInputs(inputs); + } + + + @Test + public void testGetInstInputs() throws Exception { + TopologyTemplate testSubject; + Map<String, MapPropertiesDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInstInputs(); + } + + + @Test + public void testSetInstInputs() throws Exception { + TopologyTemplate testSubject; + Map<String, MapPropertiesDataDefinition> instInputs = null; + + // default test + testSubject = createTestSubject(); + testSubject.setInstInputs(instInputs); + } + + + @Test + public void testGetHeatParameters() throws Exception { + TopologyTemplate testSubject; + Map<String, ? extends ToscaDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getHeatParameters(); + } + + + @Test + public void testSetHeatParameters() throws Exception { + TopologyTemplate testSubject; + Map<String, ? extends ToscaDataDefinition> heatParameters = null; + + // default test + testSubject = createTestSubject(); + testSubject.setHeatParameters(heatParameters); + } + + + @Test + public void testGetInstAttributes() throws Exception { + TopologyTemplate testSubject; + Map<String, MapPropertiesDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInstAttributes(); + } + + + @Test + public void testSetInstAttributes() throws Exception { + TopologyTemplate testSubject; + Map<String, MapPropertiesDataDefinition> instAttributes = null; + + // default test + testSubject = createTestSubject(); + testSubject.setInstAttributes(instAttributes); + } + + + @Test + public void testGetInstProperties() throws Exception { + TopologyTemplate testSubject; + Map<String, MapPropertiesDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInstProperties(); + } + + + @Test + public void testSetInstProperties() throws Exception { + TopologyTemplate testSubject; + Map<String, MapPropertiesDataDefinition> instProperties = null; + + // default test + testSubject = createTestSubject(); + testSubject.setInstProperties(instProperties); + } + + + @Test + public void testGetGroups() throws Exception { + TopologyTemplate testSubject; + Map<String, GroupDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGroups(); + } + + + @Test + public void testSetGroups() throws Exception { + TopologyTemplate testSubject; + Map<String, GroupDataDefinition> groups = null; + + // default test + testSubject = createTestSubject(); + testSubject.setGroups(groups); + } + + + @Test + public void testGetInstGroups() throws Exception { + TopologyTemplate testSubject; + Map<String, MapGroupsDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInstGroups(); + } + + + @Test + public void testSetInstGroups() throws Exception { + TopologyTemplate testSubject; + Map<String, MapGroupsDataDefinition> instGroups = null; + + // default test + testSubject = createTestSubject(); + testSubject.setInstGroups(instGroups); + } + + + @Test + public void testGetServiceApiArtifacts() throws Exception { + TopologyTemplate testSubject; + Map<String, ArtifactDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getServiceApiArtifacts(); + } + + + @Test + public void testSetServiceApiArtifacts() throws Exception { + TopologyTemplate testSubject; + Map<String, ArtifactDataDefinition> serviceApiArtifacts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setServiceApiArtifacts(serviceApiArtifacts); + } + + + @Test + public void testGetCompositions() throws Exception { + TopologyTemplate testSubject; + Map<String, CompositionDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCompositions(); + } + + + @Test + public void testSetCompositions() throws Exception { + TopologyTemplate testSubject; + Map<String, CompositionDataDefinition> compositions = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCompositions(compositions); + } + + + @Test + public void testGetCalculatedCapabilities() throws Exception { + TopologyTemplate testSubject; + Map<String, MapListCapabiltyDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCalculatedCapabilities(); + } + + + @Test + public void testSetCalculatedCapabilities() throws Exception { + TopologyTemplate testSubject; + Map<String, MapListCapabiltyDataDefinition> calculatedCapabilities = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCalculatedCapabilities(calculatedCapabilities); + } + + + @Test + public void testGetCalculatedRequirements() throws Exception { + TopologyTemplate testSubject; + Map<String, MapListRequirementDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCalculatedRequirements(); + } + + + @Test + public void testSetCalculatedRequirements() throws Exception { + TopologyTemplate testSubject; + Map<String, MapListRequirementDataDefinition> calculatedRequirements = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCalculatedRequirements(calculatedRequirements); + } + + + @Test + public void testGetFullfilledCapabilities() throws Exception { + TopologyTemplate testSubject; + Map<String, MapListCapabiltyDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFullfilledCapabilities(); + } + + + @Test + public void testSetFullfilledCapabilities() throws Exception { + TopologyTemplate testSubject; + Map<String, MapListCapabiltyDataDefinition> fullfilledCapabilities = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFullfilledCapabilities(fullfilledCapabilities); + } + + + @Test + public void testGetFullfilledRequirements() throws Exception { + TopologyTemplate testSubject; + Map<String, MapListRequirementDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getFullfilledRequirements(); + } + + + @Test + public void testSetFullfilledRequirements() throws Exception { + TopologyTemplate testSubject; + Map<String, MapListRequirementDataDefinition> fullfilledRequirements = null; + + // default test + testSubject = createTestSubject(); + testSubject.setFullfilledRequirements(fullfilledRequirements); + } + + + @Test + public void testGetInstDeploymentArtifacts() throws Exception { + TopologyTemplate testSubject; + Map<String, MapArtifactDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInstDeploymentArtifacts(); + } + + + @Test + public void testSetInstDeploymentArtifacts() throws Exception { + TopologyTemplate testSubject; + Map<String, MapArtifactDataDefinition> instDeploymentArtifacts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setInstDeploymentArtifacts(instDeploymentArtifacts); + } + + + @Test + public void testGetCalculatedCapabilitiesProperties() throws Exception { + TopologyTemplate testSubject; + Map<String, MapCapabiltyProperty> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCalculatedCapabilitiesProperties(); + } + + + @Test + public void testSetCalculatedCapabilitiesProperties() throws Exception { + TopologyTemplate testSubject; + Map<String, MapCapabiltyProperty> calculatedCapabilitiesProperties = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCalculatedCapabilitiesProperties(calculatedCapabilitiesProperties); + } + + + @Test + public void testGetInstanceArtifacts() throws Exception { + TopologyTemplate testSubject; + Map<String, MapArtifactDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInstanceArtifacts(); + } + + + @Test + public void testSetInstanceArtifacts() throws Exception { + TopologyTemplate testSubject; + Map<String, MapArtifactDataDefinition> instanceArtifacts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setInstanceArtifacts(instanceArtifacts); + } + + + + + + @Test + public void testGetComponentInstances() throws Exception { + TopologyTemplate testSubject; + Map<String, ComponentInstanceDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getComponentInstances(); + } + + + @Test + public void testSetComponentInstances() throws Exception { + TopologyTemplate testSubject; + Map<String, ComponentInstanceDataDefinition> instances = null; + + // default test + testSubject = createTestSubject(); + testSubject.setComponentInstances(instances); + } + + + @Test + public void testGetRelations() throws Exception { + TopologyTemplate testSubject; + Map<String, RelationshipInstDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRelations(); + } +}
\ No newline at end of file |