summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormukesh.paliwal1@huawei.com <mukesh.paliwal1@huawei.com>2020-03-10 13:35:19 +0530
committerTao Shen <shentao@chinamobile.com>2020-03-10 12:35:17 +0000
commit0c3903d9da8695364a4a564f9344707b66b28002 (patch)
tree6a8710e39af06d3faac4d56cd7491db29e74cb5e
parent5320457860b81d6e655cf5877fc0873f71dbfa82 (diff)
UT code for the SOTN
Issue-ID: USECASEUI-378 Signed-off-by: mukesh.paliwal1@huawei.com <mukesh.paliwal1@huawei.com> Change-Id: I6838a40804f241659d7df7f8c12bae8bbdfa0e1e
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/ComplexObjTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/RelationshipDatumTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/RelationshipListTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/SiteResourceTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/customer/ServiceInstanceTest.java10
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/customer/ServiceInstancesTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/customer/SubscriptionTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/customer/SubscriptionTypeTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/AllottedResourceTest.java2
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ConnectivityTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EParametersTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EServiceDeleteTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/EdgeTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/FileBeanTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/FileWrapperTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/NodeTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ResourceResponseTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ResponseServiceInstanceWrapperTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ServiceInstanceListTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/orderservice/ServiceEstimationTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/orderservice/SiteTest.java1
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/orderservice/VpnInformationTest.java1
22 files changed, 24 insertions, 8 deletions
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/ComplexObjTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/ComplexObjTest.java
index 533b98f1..e6e1901e 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/ComplexObjTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/ComplexObjTest.java
@@ -48,6 +48,7 @@ public class ComplexObjTest {
co.getRelationshipList();
co.getResourceVersion();
co.getStreet1();
+ co.toString();
}
@Test
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/RelationshipDatumTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/RelationshipDatumTest.java
index 38d49418..ee2e6d0e 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/RelationshipDatumTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/RelationshipDatumTest.java
@@ -37,6 +37,7 @@ public class RelationshipDatumTest {
rd.getAdditionalProperties();
rd.getRelationshipKey();
rd.getRelationshipValue();
+ rd.toString();
}
@Test
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/RelationshipListTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/RelationshipListTest.java
index 0235a464..946b7dbe 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/RelationshipListTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/RelationshipListTest.java
@@ -41,6 +41,7 @@ public class RelationshipListTest {
RelationshipList rl = new RelationshipList();
rl.getRelationship();
rl.getAdditionalProperties();
+ rl.toString();
}
@Test
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/SiteResourceTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/SiteResourceTest.java
index 0680dc1b..fb0a31da 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/SiteResourceTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/activeEdge/SiteResourceTest.java
@@ -46,6 +46,7 @@ public class SiteResourceTest {
sr.getRole();
sr.getSelflink();
sr.getType();
+ sr.toString();
}
@Test
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/customer/ServiceInstanceTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/customer/ServiceInstanceTest.java
index 672cb4ed..9ac30cc0 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/customer/ServiceInstanceTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/customer/ServiceInstanceTest.java
@@ -18,7 +18,6 @@ package org.onap.usecaseui.server.bean.customer;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
-import org.onap.usecaseui.server.bean.activateEdge.ServiceInstance;
import static org.mockito.Matchers.anyObject;
@@ -34,28 +33,25 @@ public class ServiceInstanceTest {
@Test
public void testGetServiceInstance() throws Exception {
- org.onap.usecaseui.server.bean.activateEdge.ServiceInstance si = new org.onap.usecaseui.server.bean.activateEdge.ServiceInstance();
+ ServiceInstance si = new ServiceInstance();
si.getRelationshipList();
- si.getInputparameters();
si.getServiceInstanceName();
si.getServiceInstanceId();
si.getAdditionalProperties();
- si.getOrchestrationstatus();
si.getResourceVersion();
si.getSelflink();
si.getServiceRole();
si.getServiceType();
+ si.toString();
}
@Test
public void testSetServiceInstance() throws Exception {
- org.onap.usecaseui.server.bean.activateEdge.ServiceInstance si = new ServiceInstance();
+ ServiceInstance si = new ServiceInstance();
si.setRelationshipList(null);
- si.setInputparameters("");
si.setServiceInstanceName("");
si.setServiceInstanceId("");
si.setAdditionalProperty("", anyObject());
- si.setOrchestrationstatus("");
si.setResourceVersion("");
si.setSelflink("");
si.setServiceRole("");
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/customer/ServiceInstancesTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/customer/ServiceInstancesTest.java
index 28a94803..bc3c0e7c 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/customer/ServiceInstancesTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/customer/ServiceInstancesTest.java
@@ -32,6 +32,7 @@ public class ServiceInstancesTest {
public void testGetServiceInstances() throws Exception {
ServiceInstances si = new ServiceInstances();
si.getServiceInstances();
+ si.toString();
}
@Test
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/customer/SubscriptionTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/customer/SubscriptionTest.java
index b366276a..88fb24e5 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/customer/SubscriptionTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/customer/SubscriptionTest.java
@@ -34,6 +34,7 @@ public class SubscriptionTest {
sc.getAccountId();
sc.getResourceVersion();
sc.getServiceType();
+ sc.toString();
}
@Test
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/customer/SubscriptionTypeTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/customer/SubscriptionTypeTest.java
index 6cc2a8c9..81621540 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/customer/SubscriptionTypeTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/customer/SubscriptionTypeTest.java
@@ -33,6 +33,7 @@ public class SubscriptionTypeTest {
public void testGetSubscriptionType() throws Exception {
SubscriptionType st = new SubscriptionType();
st.getSubscriptions();
+ st.toString();
}
@Test
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/AllottedResourceTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/AllottedResourceTest.java
index 82fe2de4..106d2fc0 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/AllottedResourceTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/AllottedResourceTest.java
@@ -47,6 +47,7 @@ public class AllottedResourceTest {
ar.getRelationshipList();
ar.getResourceVersion();
ar.getSelflink();
+ ar.getVpnName();
}
@Test
public void testSetAllocattedResource() {
@@ -66,5 +67,6 @@ public class AllottedResourceTest {
ar.setRelationshipList(null);
ar.setResourceVersion("");
ar.setSelflink("");
+ ar.setVpnName("");
}
}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ConnectivityTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ConnectivityTest.java
index 3d2871fc..02193720 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ConnectivityTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ConnectivityTest.java
@@ -55,6 +55,7 @@ public class ConnectivityTest {
c.getModelCustomizationId();
c.getModelInvariantId();
c.getModelVersionId();
+ c.toString();
}
@Test
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EParametersTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EParametersTest.java
index 5436ed3d..2333c426 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EParametersTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EParametersTest.java
@@ -34,7 +34,6 @@ public class E2EParametersTest {
e2epr.getAdditionalProperties();
e2epr.getRequestInputs();
e2epr.getResources();
-
}
@Test
public void testSetE2EParameters() throws Exception{
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EServiceDeleteTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EServiceDeleteTest.java
index 2ff75742..726992f4 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EServiceDeleteTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EServiceDeleteTest.java
@@ -36,6 +36,7 @@ public class E2EServiceDeleteTest {
e2esd.getAdditionalProperties();
e2esd.getGlobalSubscriberId();
e2esd.getServiceType();
+ e2esd.toString();
}
@Test
public void testSetE2EServiceDelete() throws Exception{
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/EdgeTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/EdgeTest.java
index ca9b4c47..e9eb6dfa 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/EdgeTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/EdgeTest.java
@@ -32,6 +32,7 @@ public class EdgeTest {
Edge edge = new Edge();
edge.getFrom();
edge.getTo();
+ edge.toString();
}
@Test
public void testSetEdge() throws Exception{
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/FileBeanTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/FileBeanTest.java
index 0672558b..9cf8a2ff 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/FileBeanTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/FileBeanTest.java
@@ -32,6 +32,7 @@ public class FileBeanTest {
public void testGetFileBean() throws Exception{
FileBean fb = new FileBean();
fb.getFileName();
+ fb.toString();
}
@Test
public void testSetFileBean() throws Exception{
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/FileWrapperTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/FileWrapperTest.java
index 25da479f..bcc7002d 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/FileWrapperTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/FileWrapperTest.java
@@ -34,6 +34,7 @@ public class FileWrapperTest {
public void testGetFileWrapper() throws Exception{
FileWrapper fw = new FileWrapper();
fw.getFile();
+ fw.toString();
}
@Test
public void testSetFileWrapper() throws Exception{
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/NodeTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/NodeTest.java
index c7b8ca4f..9588842d 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/NodeTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/NodeTest.java
@@ -38,6 +38,7 @@ public class NodeTest {
node.getImage();
node.getLabel();
node.getShape();
+ node.toString();
}
@Test
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ResourceResponseTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ResourceResponseTest.java
index 4d09f28e..c00b8956 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ResourceResponseTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ResourceResponseTest.java
@@ -35,6 +35,7 @@ public class ResourceResponseTest {
ResourceResponse rr = new ResourceResponse();
rr.getEdges();
rr.getNodes();
+ rr.toString();
}
@Test
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ResponseServiceInstanceWrapperTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ResponseServiceInstanceWrapperTest.java
index a6c9113a..674c7e73 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ResponseServiceInstanceWrapperTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ResponseServiceInstanceWrapperTest.java
@@ -36,6 +36,7 @@ public class ResponseServiceInstanceWrapperTest {
public void testGetServiceTemplateInput() throws Exception {
ResponseServiceInstanceWrapper rsi = new ResponseServiceInstanceWrapper();
rsi.getServiceInstanceListList();
+ rsi.toString();
}
@Test
public void testSetServiceTemplateInput() throws Exception {
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ServiceInstanceListTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ServiceInstanceListTest.java
index 481045fe..c6731c90 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ServiceInstanceListTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ServiceInstanceListTest.java
@@ -32,6 +32,7 @@ public class ServiceInstanceListTest {
public void testGetServiceTemplateInput() throws Exception {
ServiceInstanceList sil = new ServiceInstanceList();
sil.getServiceInstance();
+ sil.toString();
}
@Test
public void testGetServiceInstancename() throws Exception {
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/orderservice/ServiceEstimationTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/orderservice/ServiceEstimationTest.java
index 39d2fedf..2d406c49 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/orderservice/ServiceEstimationTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/orderservice/ServiceEstimationTest.java
@@ -40,6 +40,7 @@ public class ServiceEstimationTest {
seb.getVpnCost();
seb.getVpnInformations();
seb.getWlanAccess();
+ seb.toString();
}
@Test
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/orderservice/SiteTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/orderservice/SiteTest.java
index 6030808a..7e4f7c7e 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/orderservice/SiteTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/orderservice/SiteTest.java
@@ -46,6 +46,7 @@ public class SiteTest {
site.getSubnet();
site.getType();
site.getZipCode();
+ site.toString();
}
@Test
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/orderservice/VpnInformationTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/orderservice/VpnInformationTest.java
index 76eef6a4..67c9589f 100644
--- a/server/src/test/java/org/onap/usecaseui/server/bean/orderservice/VpnInformationTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/orderservice/VpnInformationTest.java
@@ -40,6 +40,7 @@ public class VpnInformationTest {
vpn.getVpnName();
vpn.getVpnThreshold();
vpn.getVpnType();
+ vpn.toString();
}
@Test