diff options
author | 2018-03-13 18:31:21 +0200 | |
---|---|---|
committer | 2018-03-13 18:31:21 +0200 | |
commit | d5ec7bf55217508e2b5cebe640d586598379f97a (patch) | |
tree | 4bbe052d2eb67c11c5fbc22998c95e55e7aef4d0 /vid-app-common/src/test/java/org/onap/vid/aai/model | |
parent | 80098ffa01c5a0f4dd5b99f41c31d51e9dc25762 (diff) |
Unit tests
Change-Id: Ib9f73b7ba5a509610896b8bbdc02c180e60ee959
Issue-ID: VID-197
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/aai/model')
14 files changed, 865 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/model/AaiGetPnfResponseTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/AaiGetPnfResponseTest.java new file mode 100644 index 00000000..bf248a39 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/AaiGetPnfResponseTest.java @@ -0,0 +1,43 @@ +package org.onap.vid.aai.model; + +import java.util.Map; + +import org.junit.Test; + +public class AaiGetPnfResponseTest { + + private AaiGetPnfResponse createTestSubject() { + return new AaiGetPnfResponse(); + } + + @Test + public void testGetAdditionalProperties() throws Exception { + AaiGetPnfResponse testSubject; + Map<String, Object> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalProperties(); + } + + @Test + public void testSetAdditionalProperty() throws Exception { + AaiGetPnfResponse testSubject; + String name = ""; + Object value = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalProperty(name, value); + } + + @Test + public void testToString() throws Exception { + AaiGetPnfResponse testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/model/AaiGetPnfs/PnfTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/AaiGetPnfs/PnfTest.java new file mode 100644 index 00000000..22aad6ea --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/AaiGetPnfs/PnfTest.java @@ -0,0 +1,150 @@ +package org.onap.vid.aai.model.AaiGetPnfs; + +import org.junit.Test; + +public class PnfTest { + + private Pnf createTestSubject() { + return new Pnf(); + } + + @Test + public void testGetPnfName() throws Exception { + Pnf testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPnfName(); + } + + @Test + public void testSetPnfName() throws Exception { + Pnf testSubject; + String pnfName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setPnfName(pnfName); + } + + @Test + public void testGetEquipType() throws Exception { + Pnf testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEquipType(); + } + + @Test + public void testSetEquipType() throws Exception { + Pnf testSubject; + String equipType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEquipType(equipType); + } + + @Test + public void testGetEquipVendor() throws Exception { + Pnf testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEquipVendor(); + } + + @Test + public void testSetEquipVendor() throws Exception { + Pnf testSubject; + String equipVendor = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEquipVendor(equipVendor); + } + + @Test + public void testGetPnfName2() throws Exception { + Pnf testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPnfName2(); + } + + @Test + public void testSetPnfName2() throws Exception { + Pnf testSubject; + String pnfName2 = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setPnfName2(pnfName2); + } + + @Test + public void testGetPnfId() throws Exception { + Pnf testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPnfId(); + } + + @Test + public void testSetPnfId() throws Exception { + Pnf testSubject; + String pnfId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setPnfId(pnfId); + } + + @Test + public void testGetEquipModel() throws Exception { + Pnf testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEquipModel(); + } + + @Test + public void testSetEquipModel() throws Exception { + Pnf testSubject; + String equipModel = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEquipModel(equipModel); + } + + @Test + public void testGetPnfName2Source() throws Exception { + Pnf testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPnfName2Source(); + } + + @Test + public void testSetPnfName2Source() throws Exception { + Pnf testSubject; + String pnfName2Source = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setPnfName2Source(pnfName2Source); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/model/AaiRelationResponseTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/AaiRelationResponseTest.java new file mode 100644 index 00000000..d9f3fe52 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/AaiRelationResponseTest.java @@ -0,0 +1,50 @@ +package org.onap.vid.aai.model; + +import org.junit.Test; + +public class AaiRelationResponseTest { + + private AaiRelationResponse createTestSubject() { + return new AaiRelationResponse(); + } + + @Test + public void testGetResourceVersion() throws Exception { + AaiRelationResponse testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResourceVersion(); + } + + @Test + public void testSetResourceVersion() throws Exception { + AaiRelationResponse testSubject; + String resourceVersion = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setResourceVersion(resourceVersion); + } + + @Test + public void testGetRelationshipList() throws Exception { + AaiRelationResponse testSubject; + RelationshipList result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRelationshipList(); + } + + @Test + public void testSetRelationshipList() throws Exception { + AaiRelationResponse testSubject; + RelationshipList relationshipList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRelationshipList(relationshipList); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/model/GetServiceModelsByDistributionStatusResponseTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/GetServiceModelsByDistributionStatusResponseTest.java new file mode 100644 index 00000000..748a1818 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/GetServiceModelsByDistributionStatusResponseTest.java @@ -0,0 +1,32 @@ +package org.onap.vid.aai.model; + +import java.util.List; + +import org.junit.Test; + +public class GetServiceModelsByDistributionStatusResponseTest { + + private GetServiceModelsByDistributionStatusResponse createTestSubject() { + return new GetServiceModelsByDistributionStatusResponse(); + } + + @Test + public void testGetResults() throws Exception { + GetServiceModelsByDistributionStatusResponse testSubject; + List<Result> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResults(); + } + + @Test + public void testSetResults() throws Exception { + GetServiceModelsByDistributionStatusResponse testSubject; + List<Result> results = null; + + // default test + testSubject = createTestSubject(); + testSubject.setResults(results); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/model/LogicalLinkResponseTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/LogicalLinkResponseTest.java new file mode 100644 index 00000000..99ee5958 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/LogicalLinkResponseTest.java @@ -0,0 +1,130 @@ +package org.onap.vid.aai.model; + +import org.junit.Test; + +public class LogicalLinkResponseTest { + + private LogicalLinkResponse createTestSubject() { + return new LogicalLinkResponse(); + } + + @Test + public void testGetLinkName() throws Exception { + LogicalLinkResponse testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLinkName(); + } + + @Test + public void testSetLinkName() throws Exception { + LogicalLinkResponse testSubject; + String linkName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setLinkName(linkName); + } + + @Test + public void testGetInMaint() throws Exception { + LogicalLinkResponse testSubject; + Boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInMaint(); + } + + @Test + public void testSetInMaint() throws Exception { + LogicalLinkResponse testSubject; + Boolean inMaint = null; + + // default test + testSubject = createTestSubject(); + testSubject.setInMaint(inMaint); + } + + @Test + public void testGetLinkType() throws Exception { + LogicalLinkResponse testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLinkType(); + } + + @Test + public void testSetLinkType() throws Exception { + LogicalLinkResponse testSubject; + String linkType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setLinkType(linkType); + } + + @Test + public void testGetResourceVersion() throws Exception { + LogicalLinkResponse testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResourceVersion(); + } + + @Test + public void testSetResourceVersion() throws Exception { + LogicalLinkResponse testSubject; + String resourceVersion = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setResourceVersion(resourceVersion); + } + + @Test + public void testGetPurpose() throws Exception { + LogicalLinkResponse testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPurpose(); + } + + @Test + public void testSetPurpose() throws Exception { + LogicalLinkResponse testSubject; + String purpose = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setPurpose(purpose); + } + + @Test + public void testGetRelationshipList() throws Exception { + LogicalLinkResponse testSubject; + RelationshipList result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRelationshipList(); + } + + @Test + public void testSetRelationshipList() throws Exception { + LogicalLinkResponse testSubject; + RelationshipList relationshipList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRelationshipList(relationshipList); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/model/ModelTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/ModelTest.java new file mode 100644 index 00000000..413c0b33 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/ModelTest.java @@ -0,0 +1,90 @@ +package org.onap.vid.aai.model; + +import org.junit.Test; + +public class ModelTest { + + private Model createTestSubject() { + return new Model(); + } + + @Test + public void testGetModelInvariantId() throws Exception { + Model testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getModelInvariantId(); + } + + @Test + public void testSetModelInvariantId() throws Exception { + Model testSubject; + String modelInvariantId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setModelInvariantId(modelInvariantId); + } + + @Test + public void testGetModelType() throws Exception { + Model testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getModelType(); + } + + @Test + public void testSetModelType() throws Exception { + Model testSubject; + String modelType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setModelType(modelType); + } + + @Test + public void testGetResourceVersion() throws Exception { + Model testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResourceVersion(); + } + + @Test + public void testSetResourceVersion() throws Exception { + Model testSubject; + String resourceVersion = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setResourceVersion(resourceVersion); + } + + @Test + public void testGetModelVers() throws Exception { + Model testSubject; + ModelVers result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getModelVers(); + } + + @Test + public void testSetModelVers() throws Exception { + Model testSubject; + ModelVers modelVers = null; + + // default test + testSubject = createTestSubject(); + testSubject.setModelVers(modelVers); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/model/ModelVerTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/ModelVerTest.java new file mode 100644 index 00000000..99a7a7a0 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/ModelVerTest.java @@ -0,0 +1,130 @@ +package org.onap.vid.aai.model; + +import org.junit.Test; + +public class ModelVerTest { + + private ModelVer createTestSubject() { + return new ModelVer(); + } + + @Test + public void testGetModelVersionId() throws Exception { + ModelVer testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getModelVersionId(); + } + + @Test + public void testSetModelVersionId() throws Exception { + ModelVer testSubject; + String modelVersionId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setModelVersionId(modelVersionId); + } + + @Test + public void testGetModelName() throws Exception { + ModelVer testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getModelName(); + } + + @Test + public void testSetModelName() throws Exception { + ModelVer testSubject; + String modelName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setModelName(modelName); + } + + @Test + public void testGetModelVersion() throws Exception { + ModelVer testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getModelVersion(); + } + + @Test + public void testSetModelVersion() throws Exception { + ModelVer testSubject; + String modelVersion = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setModelVersion(modelVersion); + } + + @Test + public void testGetDistributionStatus() throws Exception { + ModelVer testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDistributionStatus(); + } + + @Test + public void testSetDistributionStatus() throws Exception { + ModelVer testSubject; + String distributionStatus = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setDistributionStatus(distributionStatus); + } + + @Test + public void testGetResourceVersion() throws Exception { + ModelVer testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResourceVersion(); + } + + @Test + public void testSetResourceVersion() throws Exception { + ModelVer testSubject; + String resourceVersion = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setResourceVersion(resourceVersion); + } + + @Test + public void testGetModelDescription() throws Exception { + ModelVer testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getModelDescription(); + } + + @Test + public void testSetModelDescription() throws Exception { + ModelVer testSubject; + String modelDescription = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setModelDescription(modelDescription); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/model/ModelVersTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/ModelVersTest.java new file mode 100644 index 00000000..83bda0e5 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/ModelVersTest.java @@ -0,0 +1,32 @@ +package org.onap.vid.aai.model; + +import java.util.List; + +import org.junit.Test; + +public class ModelVersTest { + + private ModelVers createTestSubject() { + return new ModelVers(); + } + + @Test + public void testGetModelVer() throws Exception { + ModelVers testSubject; + List<ModelVer> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getModelVer(); + } + + @Test + public void testSetModelVer() throws Exception { + ModelVers testSubject; + List<ModelVer> modelVer = null; + + // default test + testSubject = createTestSubject(); + testSubject.setModelVer(modelVer); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/model/OwningEntityTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/OwningEntityTest.java new file mode 100644 index 00000000..1e160d29 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/OwningEntityTest.java @@ -0,0 +1,50 @@ +package org.onap.vid.aai.model; + +import org.junit.Test; + +public class OwningEntityTest { + + private OwningEntity createTestSubject() { + return new OwningEntity(); + } + + @Test + public void testGetOwningEntityId() throws Exception { + OwningEntity testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOwningEntityId(); + } + + @Test + public void testSetOwningEntityId() throws Exception { + OwningEntity testSubject; + String owningEntityId = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setOwningEntityId(owningEntityId); + } + + @Test + public void testGetOwningEntityName() throws Exception { + OwningEntity testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getOwningEntityName(); + } + + @Test + public void testSetOwningEntityName() throws Exception { + OwningEntity testSubject; + String owningEntityName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setOwningEntityName(owningEntityName); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/model/PnfPropertiesTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/PnfPropertiesTest.java new file mode 100644 index 00000000..46709af9 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/PnfPropertiesTest.java @@ -0,0 +1,33 @@ +package org.onap.vid.aai.model; + +import java.util.Map; + +import org.junit.Test; + +public class PnfPropertiesTest { + + private PnfProperties createTestSubject() { + return new PnfProperties(); + } + + @Test + public void testGetAdditionalProperties() throws Exception { + PnfProperties testSubject; + Map<String, Object> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalProperties(); + } + + @Test + public void testSetAdditionalProperty() throws Exception { + PnfProperties testSubject; + String name = ""; + Object value = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalProperty(name, value); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/model/PnfResultTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/PnfResultTest.java new file mode 100644 index 00000000..0f66df02 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/PnfResultTest.java @@ -0,0 +1,33 @@ +package org.onap.vid.aai.model; + +import java.util.Map; + +import org.junit.Test; + +public class PnfResultTest { + + private PnfResult createTestSubject() { + return new PnfResult(); + } + + @Test + public void testGetAdditionalProperties() throws Exception { + PnfResult testSubject; + Map<String, Object> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAdditionalProperties(); + } + + @Test + public void testSetAdditionalProperty() throws Exception { + PnfResult testSubject; + String name = ""; + Object value = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAdditionalProperty(name, value); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/model/ProjectResponseTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/ProjectResponseTest.java new file mode 100644 index 00000000..1784ea5a --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/ProjectResponseTest.java @@ -0,0 +1,32 @@ +package org.onap.vid.aai.model; + +import java.util.List; + +import org.junit.Test; + +public class ProjectResponseTest { + + private ProjectResponse createTestSubject() { + return new ProjectResponse(); + } + + @Test + public void testGetProject() throws Exception { + ProjectResponse testSubject; + List<Project> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProject(); + } + + @Test + public void testSetProject() throws Exception { + ProjectResponse testSubject; + List<Project> project = null; + + // default test + testSubject = createTestSubject(); + testSubject.setProject(project); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/model/ProjectTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/ProjectTest.java new file mode 100644 index 00000000..8de772d4 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/ProjectTest.java @@ -0,0 +1,30 @@ +package org.onap.vid.aai.model; + +import org.junit.Test; + +public class ProjectTest { + + private Project createTestSubject() { + return new Project(); + } + + @Test + public void testGetProjectName() throws Exception { + Project testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProjectName(); + } + + @Test + public void testSetProjectName() throws Exception { + Project testSubject; + String projectName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setProjectName(projectName); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/aai/model/ResultTest.java b/vid-app-common/src/test/java/org/onap/vid/aai/model/ResultTest.java new file mode 100644 index 00000000..91d7763e --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/aai/model/ResultTest.java @@ -0,0 +1,30 @@ +package org.onap.vid.aai.model; + +import org.junit.Test; + +public class ResultTest { + + private Result createTestSubject() { + return new Result(); + } + + @Test + public void testGetModel() throws Exception { + Result testSubject; + Model result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getModel(); + } + + @Test + public void testSetModel() throws Exception { + Result testSubject; + Model model = null; + + // default test + testSubject = createTestSubject(); + testSubject.setModel(model); + } +}
\ No newline at end of file |