summaryrefslogtreecommitdiffstats
path: root/catalog-model
diff options
context:
space:
mode:
authorYuli Shlosberg <ys9693@att.com>2017-10-19 19:50:28 +0300
committerYuli Shlosberg <ys9693@att.com>2017-10-22 12:48:50 +0000
commit287481cb94f4ba0b72a520fba1e05daea95ba431 (patch)
treed21617eddc4f35865001b48b91e2244a36f7d897 /catalog-model
parentf844f32d94d7fe96fb7fdaa431c7cfb009838075 (diff)
add more unit tests to BE components
Change-Id: I23a72857d669f03e8cb7e543c006fed3318670b0 Issue-Id: SDC-467 Signed-off-by: Yuli Shlosberg <ys9693@att.com> (cherry picked from commit 6dc570c66839fe239b63f1aa8da489c520fb215d)
Diffstat (limited to 'catalog-model')
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiCategoriesTest.java82
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiComponentDataTransferTest.java446
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceDataTransferTest.java195
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceMetadataTest.java215
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceDataTransferTest.java60
-rw-r--r--catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceMetadataTest.java124
6 files changed, 1122 insertions, 0 deletions
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiCategoriesTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiCategoriesTest.java
new file mode 100644
index 0000000000..b57342f637
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiCategoriesTest.java
@@ -0,0 +1,82 @@
+package org.openecomp.sdc.be.ui.model;
+
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.category.CategoryDefinition;
+
+
+public class UiCategoriesTest {
+
+ private UiCategories createTestSubject() {
+ return new UiCategories();
+ }
+
+
+ @Test
+ public void testGetResourceCategories() throws Exception {
+ UiCategories testSubject;
+ List<CategoryDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceCategories();
+ }
+
+
+ @Test
+ public void testSetResourceCategories() throws Exception {
+ UiCategories testSubject;
+ List<CategoryDefinition> resourceCategories = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceCategories(resourceCategories);
+ }
+
+
+ @Test
+ public void testGetServiceCategories() throws Exception {
+ UiCategories testSubject;
+ List<CategoryDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceCategories();
+ }
+
+
+ @Test
+ public void testSetServiceCategories() throws Exception {
+ UiCategories testSubject;
+ List<CategoryDefinition> serviceCategories = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceCategories(serviceCategories);
+ }
+
+
+ @Test
+ public void testGetProductCategories() throws Exception {
+ UiCategories testSubject;
+ List<CategoryDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProductCategories();
+ }
+
+
+ @Test
+ public void testSetProductCategories() throws Exception {
+ UiCategories testSubject;
+ List<CategoryDefinition> productCategories = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setProductCategories(productCategories);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiComponentDataTransferTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiComponentDataTransferTest.java
new file mode 100644
index 0000000000..52767a2934
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiComponentDataTransferTest.java
@@ -0,0 +1,446 @@
+package org.openecomp.sdc.be.ui.model;
+
+import java.util.List;
+import java.util.Map;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.datatypes.enums.ComponentTypeEnum;
+import org.openecomp.sdc.be.model.AdditionalInformationDefinition;
+import org.openecomp.sdc.be.model.ArtifactDefinition;
+import org.openecomp.sdc.be.model.CapabilityDefinition;
+import org.openecomp.sdc.be.model.ComponentInstance;
+import org.openecomp.sdc.be.model.ComponentInstanceInput;
+import org.openecomp.sdc.be.model.ComponentInstanceProperty;
+import org.openecomp.sdc.be.model.GroupDefinition;
+import org.openecomp.sdc.be.model.InputDefinition;
+import org.openecomp.sdc.be.model.RequirementCapabilityRelDef;
+import org.openecomp.sdc.be.model.RequirementDefinition;
+import org.openecomp.sdc.be.model.category.CategoryDefinition;
+
+
+public class UiComponentDataTransferTest {
+
+ private UiComponentDataTransfer createTestSubject() {
+ return new UiComponentDataTransfer();
+ }
+
+
+ @Test
+ public void testGetArtifacts() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, ArtifactDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArtifacts();
+ }
+
+
+ @Test
+ public void testSetArtifacts() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, ArtifactDefinition> artifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArtifacts(artifacts);
+ }
+
+
+ @Test
+ public void testGetDeploymentArtifacts() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, ArtifactDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDeploymentArtifacts();
+ }
+
+
+ @Test
+ public void testSetDeploymentArtifacts() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, ArtifactDefinition> deploymentArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDeploymentArtifacts(deploymentArtifacts);
+ }
+
+
+ @Test
+ public void testGetToscaArtifacts() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, ArtifactDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getToscaArtifacts();
+ }
+
+
+ @Test
+ public void testSetToscaArtifacts() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, ArtifactDefinition> toscaArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setToscaArtifacts(toscaArtifacts);
+ }
+
+
+ @Test
+ public void testGetCategories() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<CategoryDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCategories();
+ }
+
+
+ @Test
+ public void testSetCategories() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<CategoryDefinition> categories = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCategories(categories);
+ }
+
+
+ @Test
+ public void testGetCreatorUserId() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCreatorUserId();
+ }
+
+
+ @Test
+ public void testSetCreatorUserId() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String creatorUserId = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCreatorUserId(creatorUserId);
+ }
+
+
+ @Test
+ public void testGetCreatorFullName() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCreatorFullName();
+ }
+
+
+ @Test
+ public void testSetCreatorFullName() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String creatorFullName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCreatorFullName(creatorFullName);
+ }
+
+
+ @Test
+ public void testGetLastUpdaterUserId() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLastUpdaterUserId();
+ }
+
+
+ @Test
+ public void testSetLastUpdaterUserId() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String lastUpdaterUserId = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLastUpdaterUserId(lastUpdaterUserId);
+ }
+
+
+ @Test
+ public void testGetLastUpdaterFullName() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLastUpdaterFullName();
+ }
+
+
+ @Test
+ public void testSetLastUpdaterFullName() throws Exception {
+ UiComponentDataTransfer testSubject;
+ String lastUpdaterFullName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLastUpdaterFullName(lastUpdaterFullName);
+ }
+
+
+ @Test
+ public void testGetComponentType() throws Exception {
+ UiComponentDataTransfer testSubject;
+ ComponentTypeEnum result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentType();
+ }
+
+
+ @Test
+ public void testSetComponentType() throws Exception {
+ UiComponentDataTransfer testSubject;
+ ComponentTypeEnum componentType = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setComponentType(componentType);
+ }
+
+
+ @Test
+ public void testGetComponentInstances() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<ComponentInstance> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentInstances();
+ }
+
+
+ @Test
+ public void testSetComponentInstances() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<ComponentInstance> componentInstances = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setComponentInstances(componentInstances);
+ }
+
+
+ @Test
+ public void testGetComponentInstancesRelations() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<RequirementCapabilityRelDef> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentInstancesRelations();
+ }
+
+
+ @Test
+ public void testSetComponentInstancesRelations() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<RequirementCapabilityRelDef> componentInstancesRelations = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setComponentInstancesRelations(componentInstancesRelations);
+ }
+
+
+ @Test
+ public void testGetComponentInstancesInputs() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<ComponentInstanceInput>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentInstancesInputs();
+ }
+
+
+ @Test
+ public void testSetComponentInstancesInputs() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<ComponentInstanceInput>> componentInstancesInputs = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setComponentInstancesInputs(componentInstancesInputs);
+ }
+
+
+ @Test
+ public void testGetComponentInstancesProperties() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<ComponentInstanceProperty>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentInstancesProperties();
+ }
+
+
+ @Test
+ public void testSetComponentInstancesProperties() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<ComponentInstanceProperty>> componentInstancesProperties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setComponentInstancesProperties(componentInstancesProperties);
+ }
+
+
+ @Test
+ public void testGetComponentInstancesAttributes() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<ComponentInstanceProperty>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getComponentInstancesAttributes();
+ }
+
+
+ @Test
+ public void testSetComponentInstancesAttributes() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<ComponentInstanceProperty>> componentInstancesAttributes = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setComponentInstancesAttributes(componentInstancesAttributes);
+ }
+
+
+ @Test
+ public void testGetCapabilities() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<CapabilityDefinition>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCapabilities();
+ }
+
+
+ @Test
+ public void testSetCapabilities() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<CapabilityDefinition>> capabilities = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCapabilities(capabilities);
+ }
+
+
+ @Test
+ public void testGetRequirements() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<RequirementDefinition>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRequirements();
+ }
+
+
+ @Test
+ public void testSetRequirements() throws Exception {
+ UiComponentDataTransfer testSubject;
+ Map<String, List<RequirementDefinition>> requirements = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRequirements(requirements);
+ }
+
+
+ @Test
+ public void testGetInputs() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<InputDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInputs();
+ }
+
+
+ @Test
+ public void testSetInputs() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<InputDefinition> inputs = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInputs(inputs);
+ }
+
+
+ @Test
+ public void testGetGroups() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<GroupDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGroups();
+ }
+
+
+ @Test
+ public void testSetGroups() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<GroupDefinition> groups = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGroups(groups);
+ }
+
+
+ @Test
+ public void testGetAdditionalInformation() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<AdditionalInformationDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalInformation();
+ }
+
+
+ @Test
+ public void testSetAdditionalInformation() throws Exception {
+ UiComponentDataTransfer testSubject;
+ List<AdditionalInformationDefinition> additionalInformation = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalInformation(additionalInformation);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceDataTransferTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceDataTransferTest.java
new file mode 100644
index 0000000000..040b94520f
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceDataTransferTest.java
@@ -0,0 +1,195 @@
+package org.openecomp.sdc.be.ui.model;
+
+import java.util.List;
+import java.util.Map;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.AdditionalInformationDefinition;
+import org.openecomp.sdc.be.model.InterfaceDefinition;
+import org.openecomp.sdc.be.model.PropertyDefinition;
+
+
+public class UiResourceDataTransferTest {
+
+ private UiResourceDataTransfer createTestSubject() {
+ return new UiResourceDataTransfer();
+ }
+
+
+ @Test
+ public void testGetAdditionalInformation() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<AdditionalInformationDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalInformation();
+ }
+
+
+ @Test
+ public void testSetAdditionalInformation() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<AdditionalInformationDefinition> additionalInformation = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalInformation(additionalInformation);
+ }
+
+
+ @Test
+ public void testGetMetadata() throws Exception {
+ UiResourceDataTransfer testSubject;
+ UiResourceMetadata result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMetadata();
+ }
+
+
+ @Test
+ public void testSetMetadata() throws Exception {
+ UiResourceDataTransfer testSubject;
+ UiResourceMetadata metadata = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMetadata(metadata);
+ }
+
+
+ @Test
+ public void testGetDerivedFrom() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDerivedFrom();
+ }
+
+
+ @Test
+ public void testSetDerivedFrom() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<String> derivedFrom = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDerivedFrom(derivedFrom);
+ }
+
+
+ @Test
+ public void testGetDerivedList() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDerivedList();
+ }
+
+
+ @Test
+ public void testSetDerivedList() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<String> derivedList = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDerivedList(derivedList);
+ }
+
+
+ @Test
+ public void testGetProperties() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<PropertyDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProperties();
+ }
+
+
+ @Test
+ public void testSetProperties() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<PropertyDefinition> properties = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setProperties(properties);
+ }
+
+
+ @Test
+ public void testGetAttributes() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<PropertyDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAttributes();
+ }
+
+
+ @Test
+ public void testSetAttributes() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<PropertyDefinition> attributes = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAttributes(attributes);
+ }
+
+
+ @Test
+ public void testGetInterfaces() throws Exception {
+ UiResourceDataTransfer testSubject;
+ Map<String, InterfaceDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInterfaces();
+ }
+
+
+ @Test
+ public void testSetInterfaces() throws Exception {
+ UiResourceDataTransfer testSubject;
+ Map<String, InterfaceDefinition> interfaces = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInterfaces(interfaces);
+ }
+
+
+ @Test
+ public void testGetDefaultCapabilities() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDefaultCapabilities();
+ }
+
+
+ @Test
+ public void testSetDefaultCapabilities() throws Exception {
+ UiResourceDataTransfer testSubject;
+ List<String> defaultCapabilities = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDefaultCapabilities(defaultCapabilities);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceMetadataTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceMetadataTest.java
new file mode 100644
index 0000000000..9248b4d176
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiResourceMetadataTest.java
@@ -0,0 +1,215 @@
+package org.openecomp.sdc.be.ui.model;
+
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.datatypes.components.ResourceMetadataDataDefinition;
+import org.openecomp.sdc.be.datatypes.enums.ResourceTypeEnum;
+
+
+public class UiResourceMetadataTest {
+
+ private UiResourceMetadata createTestSubject() {
+ return new UiResourceMetadata(null, null, new ResourceMetadataDataDefinition());
+ }
+
+
+ @Test
+ public void testGetDerivedFrom() throws Exception {
+ UiResourceMetadata testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDerivedFrom();
+ }
+
+
+ @Test
+ public void testSetDerivedFrom() throws Exception {
+ UiResourceMetadata testSubject;
+ List<String> derivedFrom = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDerivedFrom(derivedFrom);
+ }
+
+
+ @Test
+ public void testGetVendorName() throws Exception {
+ UiResourceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVendorName();
+ }
+
+
+ @Test
+ public void testSetVendorName() throws Exception {
+ UiResourceMetadata testSubject;
+ String vendorName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVendorName(vendorName);
+ }
+
+
+ @Test
+ public void testGetVendorRelease() throws Exception {
+ UiResourceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVendorRelease();
+ }
+
+
+ @Test
+ public void testSetVendorRelease() throws Exception {
+ UiResourceMetadata testSubject;
+ String vendorRelease = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVendorRelease(vendorRelease);
+ }
+
+
+ @Test
+ public void testGetResourceVendorModelNumber() throws Exception {
+ UiResourceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceVendorModelNumber();
+ }
+
+
+ @Test
+ public void testSetResourceVendorModelNumber() throws Exception {
+ UiResourceMetadata testSubject;
+ String resourceVendorModelNumber = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceVendorModelNumber(resourceVendorModelNumber);
+ }
+
+
+ @Test
+ public void testGetResourceType() throws Exception {
+ UiResourceMetadata testSubject;
+ ResourceTypeEnum result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getResourceType();
+ }
+
+
+ @Test
+ public void testSetResourceType() throws Exception {
+ UiResourceMetadata testSubject;
+ ResourceTypeEnum resourceType = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setResourceType(resourceType);
+ }
+
+
+ @Test
+ public void testGetIsAbstract() throws Exception {
+ UiResourceMetadata testSubject;
+ Boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getIsAbstract();
+ }
+
+
+ @Test
+ public void testSetIsAbstract() throws Exception {
+ UiResourceMetadata testSubject;
+ Boolean isAbstract = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setIsAbstract(isAbstract);
+ }
+
+
+ @Test
+ public void testGetCost() throws Exception {
+ UiResourceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCost();
+ }
+
+
+ @Test
+ public void testSetCost() throws Exception {
+ UiResourceMetadata testSubject;
+ String cost = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCost(cost);
+ }
+
+
+ @Test
+ public void testGetLicenseType() throws Exception {
+ UiResourceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLicenseType();
+ }
+
+
+ @Test
+ public void testSetLicenseType() throws Exception {
+ UiResourceMetadata testSubject;
+ String licenseType = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLicenseType(licenseType);
+ }
+
+
+ @Test
+ public void testGetToscaResourceName() throws Exception {
+ UiResourceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getToscaResourceName();
+ }
+
+
+ @Test
+ public void testSetToscaResourceName() throws Exception {
+ UiResourceMetadata testSubject;
+ String toscaResourceName = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setToscaResourceName(toscaResourceName);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceDataTransferTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceDataTransferTest.java
new file mode 100644
index 0000000000..83a1281172
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceDataTransferTest.java
@@ -0,0 +1,60 @@
+package org.openecomp.sdc.be.ui.model;
+
+import java.util.Map;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.model.ArtifactDefinition;
+
+
+public class UiServiceDataTransferTest {
+
+ private UiServiceDataTransfer createTestSubject() {
+ return new UiServiceDataTransfer();
+ }
+
+
+ @Test
+ public void testGetMetadata() throws Exception {
+ UiServiceDataTransfer testSubject;
+ UiServiceMetadata result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMetadata();
+ }
+
+
+ @Test
+ public void testSetMetadata() throws Exception {
+ UiServiceDataTransfer testSubject;
+ UiServiceMetadata metadata = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMetadata(metadata);
+ }
+
+
+ @Test
+ public void testGetServiceApiArtifacts() throws Exception {
+ UiServiceDataTransfer testSubject;
+ Map<String, ArtifactDefinition> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceApiArtifacts();
+ }
+
+
+ @Test
+ public void testSetServiceApiArtifacts() throws Exception {
+ UiServiceDataTransfer testSubject;
+ Map<String, ArtifactDefinition> serviceApiArtifacts = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceApiArtifacts(serviceApiArtifacts);
+ }
+} \ No newline at end of file
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceMetadataTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceMetadataTest.java
new file mode 100644
index 0000000000..1d203b1ce3
--- /dev/null
+++ b/catalog-model/src/test/java/org/openecomp/sdc/be/ui/model/UiServiceMetadataTest.java
@@ -0,0 +1,124 @@
+package org.openecomp.sdc.be.ui.model;
+
+import javax.annotation.Generated;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.datatypes.components.ServiceMetadataDataDefinition;
+
+
+public class UiServiceMetadataTest {
+
+ private UiServiceMetadata createTestSubject() {
+ return new UiServiceMetadata(null, new ServiceMetadataDataDefinition());
+ }
+
+
+ @Test
+ public void testGetDistributionStatus() throws Exception {
+ UiServiceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDistributionStatus();
+ }
+
+
+ @Test
+ public void testSetDistributionStatus() throws Exception {
+ UiServiceMetadata testSubject;
+ String distributionStatus = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDistributionStatus(distributionStatus);
+ }
+
+
+ @Test
+ public void testGetEcompGeneratedNaming() throws Exception {
+ UiServiceMetadata testSubject;
+ Boolean result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEcompGeneratedNaming();
+ }
+
+
+ @Test
+ public void testSetEcompGeneratedNaming() throws Exception {
+ UiServiceMetadata testSubject;
+ Boolean ecompGeneratedNaming = null;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEcompGeneratedNaming(ecompGeneratedNaming);
+ }
+
+
+ @Test
+ public void testGetNamingPolicy() throws Exception {
+ UiServiceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNamingPolicy();
+ }
+
+
+ @Test
+ public void testSetNamingPolicy() throws Exception {
+ UiServiceMetadata testSubject;
+ String namingPolicy = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNamingPolicy(namingPolicy);
+ }
+
+
+ @Test
+ public void testGetServiceType() throws Exception {
+ UiServiceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceType();
+ }
+
+
+ @Test
+ public void testSetServiceType() throws Exception {
+ UiServiceMetadata testSubject;
+ String serviceType = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceType(serviceType);
+ }
+
+
+ @Test
+ public void testGetServiceRole() throws Exception {
+ UiServiceMetadata testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getServiceRole();
+ }
+
+
+ @Test
+ public void testSetServiceRole() throws Exception {
+ UiServiceMetadata testSubject;
+ String serviceRole = "";
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setServiceRole(serviceRole);
+ }
+} \ No newline at end of file