summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormukesh.paliwal1@huawei.com <mukesh.paliwal1@huawei.com>2020-03-09 21:43:10 +0530
committerTao Shen <shentao@chinamobile.com>2020-03-10 12:34:06 +0000
commitdb60fa79d6789931a3f3d4d3b601de7a19a84d48 (patch)
tree982d4170c5e70fa9bb064e01a68f915a382b93ce
parentcfbfa5bb675f5fd6462507b9ed7e6ef16d80a493 (diff)
UT code for the SOTN
Issue-ID: USECASEUI-378 Signed-off-by: mukesh.paliwal1@huawei.com <mukesh.paliwal1@huawei.com> Change-Id: I03a7ebdbf57973d347eecf9754519cd52d0daeba
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/AllottedResourceTest.java70
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ConnectivityTest.java88
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EParametersTest.java49
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EServiceDeleteTest.java47
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EServiceTest.java55
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ModelConfigTest.java57
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ModelInforTest.java46
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ModelTest.java50
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/NodeTest.java53
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/PinterfaceTest.java58
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/PnfTest.java58
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ResourceRequestTest.java59
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ResourceResponseTest.java46
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/VpnBindingTest.java42
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/VpnInformationTest.java71
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/resourcemodelinformationTest.java44
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ResponseServiceInstanceWrapperTest.java45
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ServiceInstanceListTest.java53
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ServiceInstanceListWrapperTest.java41
19 files changed, 1032 insertions, 0 deletions
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
new file mode 100644
index 00000000..82fe2de4
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/AllottedResourceTest.java
@@ -0,0 +1,70 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import static org.mockito.Matchers.anyObject;
+
+public class AllottedResourceTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+ @Test
+ public void testGetAllocattedResource() {
+ AllottedResource ar = new AllottedResource();
+
+ ar.getAccessClientId();
+ ar.getAccessLtpId();
+ ar.getAccessNodeId();
+ ar.getAccessProviderId();
+ ar.getAccessTopologyId();
+ ar.getAdditionalProperties();
+ ar.getCvlan();
+ ar.getId();
+ ar.getModelInvariantId();
+ ar.getModelVersionId();
+ ar.getOperationalStatus();
+ ar.getRelationshipList();
+ ar.getResourceVersion();
+ ar.getSelflink();
+ }
+ @Test
+ public void testSetAllocattedResource() {
+ AllottedResource ar = new AllottedResource();
+
+ ar.setAccessClientId("");
+ ar.setAccessLtpId("");
+ ar.setAccessNodeId("");
+ ar.setAccessProviderId("");
+ ar.setAccessTopologyId("");
+ ar.setAdditionalProperty("", anyObject());
+ ar.setCvlan("");
+ ar.setId("");
+ ar.setModelInvariantId("");
+ ar.setModelVersionId("");
+ ar.setOperationalStatus("");
+ ar.setRelationshipList(null);
+ ar.setResourceVersion("");
+ ar.setSelflink("");
+ }
+}
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
new file mode 100644
index 00000000..3d2871fc
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ConnectivityTest.java
@@ -0,0 +1,88 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import static org.mockito.Matchers.anyObject;
+
+public class ConnectivityTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+ @Test
+ public void testGetConnectivityTest() throws Exception{
+ Connectivity c = new Connectivity();
+ c.getConnectivityId();
+ c.getAccessClientId();
+ c.getAccessLtpId();
+ c.getAccessNodeId();
+ c.getAccessProviderId();
+ c.getAccessTopologyId();
+ c.getAdditionalProperties();
+ c.getBandwidthProfileName();
+ c.getCbs();
+ c.getCir();
+ c.getColorAware();
+ c.getConnectivitySelflink();
+ c.getEbs();
+ c.getEir();
+ c.getRelationshipList();
+ c.getResourceVersion();
+ c.getEthtSvcName();
+ c.getOperationalStatus();
+ c.getAdditionalProperties();
+ c.getCouplingFlag();
+ c.getModelCustomizationId();
+ c.getModelInvariantId();
+ c.getModelVersionId();
+
+ }
+ @Test
+ public void testSetConnectivityTest() throws Exception{
+ Connectivity c = new Connectivity();
+ c.setAccessClientId("");
+ c.setAccessLtpId("");
+ c.setAccessNodeId("");
+ c.setAccessProviderId("");
+ c.setAccessTopologyId("");
+ c.setAdditionalProperty("",anyObject());
+ c.setBandwidthProfileName("");
+ c.setCbs("");
+ c.setColorAware("");
+ c.setConnectivityId("");
+ c.setConnectivitySelflink("");
+ c.setCouplingFlag("");
+ c.setEbs("");
+ c.setEthtSvcName("");
+ c.setEir("");
+ c.setCir("");
+ c.setModelCustomizationId("");
+ c.setModelInvariantId("");
+ c.setResourceVersion("");
+ c.setOperationalStatus("");
+ c.setRelationshipList(null);
+ c.setModelVersionId("");
+
+
+ }
+}
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
new file mode 100644
index 00000000..5436ed3d
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EParametersTest.java
@@ -0,0 +1,49 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class E2EParametersTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+ @Test
+ public void testGetE2EParameters() throws Exception{
+ E2EParameters e2epr = new E2EParameters();
+ e2epr.getAdditionalProperties();
+ e2epr.getRequestInputs();
+ e2epr.getResources();
+
+ }
+ @Test
+ public void testSetE2EParameters() throws Exception{
+ E2EParameters e2epr = new E2EParameters();
+ e2epr.setAdditionalProperties(null);
+ e2epr.setRequestInputs(null);
+ e2epr.setResources(null);
+
+ }
+}
+
+
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
new file mode 100644
index 00000000..2ff75742
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EServiceDeleteTest.java
@@ -0,0 +1,47 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import static org.mockito.Matchers.anyObject;
+
+public class E2EServiceDeleteTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+ @Test
+ public void testGetE2EServiceDelete() throws Exception{
+ E2EServiceDelete e2esd = new E2EServiceDelete();
+ e2esd.getAdditionalProperties();
+ e2esd.getGlobalSubscriberId();
+ e2esd.getServiceType();
+ }
+ @Test
+ public void testSetE2EServiceDelete() throws Exception{
+ E2EServiceDelete e2esd = new E2EServiceDelete();
+ e2esd.setAdditionalProperty("", anyObject());
+ e2esd.setGlobalSubscriberId("");
+ e2esd.setServiceType("");
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EServiceTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EServiceTest.java
new file mode 100644
index 00000000..2117b66f
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EServiceTest.java
@@ -0,0 +1,55 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class E2EServiceTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+ @Test
+ public void testGetE2EService() throws Exception{
+ E2EService e2es = new E2EService();
+ e2es.getAdditionalProperties();
+ e2es.getDescription();
+ e2es.getGlobalSubscriberId();
+ e2es.getName();
+ e2es.getParameters();
+ e2es.getServiceInvariantUuid();
+ e2es.getServiceType();
+ e2es.getClass();
+ e2es.getServiceUuid();
+ }
+ @Test
+ public void testSetE2EService() throws Exception{
+ E2EService e2es = new E2EService();
+ e2es.setAdditionalProperties(null);
+ e2es.setDescription("");
+ e2es.setGlobalSubscriberId("");
+ e2es.setName("");
+ e2es.setParameters(null);
+ e2es.setServiceInvariantUuid("");
+ e2es.setServiceType("");
+ e2es.setServiceUuid("");
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ModelConfigTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ModelConfigTest.java
new file mode 100644
index 00000000..a8761d63
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ModelConfigTest.java
@@ -0,0 +1,57 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import java.util.List;
+
+public class ModelConfigTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testGetModelConfig() throws Exception {
+ ModelConfig mc = new ModelConfig();
+ mc.getSubscriberId();
+ mc.getResourcemodelinformation();
+ mc.getServiceModel();
+ mc.getSubscriptionType();
+ mc.getCreateSleepTime();
+ mc.getDeleteSleepTime();
+ mc.getStatus();
+ }
+
+ @Test
+ public void testSetModelConfig() throws Exception {
+ ModelConfig mc = new ModelConfig();
+ ModelInfor mi = new ModelInfor();
+ mc.setSubscriberId("");
+ mc.setResourcemodelinformation(null);
+ mc.setServiceModel(mi);
+ mc.setSubscriptionType("");
+ mc.setCreateSleepTime("");
+ mc.setDeleteSleepTime("");
+ mc.setStatus("");
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ModelInforTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ModelInforTest.java
new file mode 100644
index 00000000..97cb5cfc
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ModelInforTest.java
@@ -0,0 +1,46 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ModelInforTest {
+
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testGetModelInfor() throws Exception {
+ ModelInfor mi = new ModelInfor();
+ mi.getModel();
+ mi.getModelType();
+ }
+
+ @Test
+ public void testSetModelInfor() throws Exception {
+ ModelInfor mi = new ModelInfor();
+ Model model = new Model();
+ mi.setModel(model);
+ mi.setModelType("");
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ModelTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ModelTest.java
new file mode 100644
index 00000000..f540d7f6
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ModelTest.java
@@ -0,0 +1,50 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ModelTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testGetModel() throws Exception {
+ Model md = new Model();
+ md.getResourceInvariantUuid();
+ md.getResourceCustomizationUuid();
+ md.getResourceName();
+ md.getResourceUuid();
+ md.getResourceDesc();
+ }
+
+ @Test
+ public void testSetModel() throws Exception {
+ Model md = new Model();
+ md.setResourceCustomizationUuid("");
+ md.setResourceDesc("");
+ md.setResourceInvariantUuid("");
+ md.setResourceName("");
+ md.setResourceUuid("");
+ }
+}
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
new file mode 100644
index 00000000..c7b8ca4f
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/NodeTest.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class NodeTest {
+
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testGetNode() throws Exception {
+ Node node = new Node();
+ node.getId();
+ node.getColor();
+ node.getDataNode();
+ node.getImage();
+ node.getLabel();
+ node.getShape();
+ }
+
+ @Test
+ public void testSetNode() throws Exception {
+ Node node = new Node();
+ node.setId("");
+ node.setColor("");
+ node.setDataNode("");
+ node.setImage("");
+ node.setLabel("");
+ node.setShape("");
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/PinterfaceTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/PinterfaceTest.java
new file mode 100644
index 00000000..c197e6cd
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/PinterfaceTest.java
@@ -0,0 +1,58 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class PinterfaceTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testGetPinterface() throws Exception {
+ Pinterface pi = new Pinterface();
+ pi.getInterfaceName();
+ pi.getRelationshipList();
+ pi.getOperationalStatus();
+ pi.getEquipmentIdentifier();
+ pi.getInMaint();
+ pi.getNetworkRef();
+ pi.getResourceVersion();
+ pi.getSpeedValue();
+ pi.getTransparent();
+ }
+
+ @Test
+ public void testSetPinterface() throws Exception {
+ Pinterface pi = new Pinterface();
+ pi.setInterfaceName("");
+ pi.setRelationshipList(null);
+ pi.setOperationalStatus("");
+ pi.setEquipmentIdentifier("");
+ pi.setInMaint(true);
+ pi.setNetworkRef("");
+ pi.setResourceVersion("");
+ pi.setSpeedValue("");
+ pi.setTransparent("");
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/PnfTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/PnfTest.java
new file mode 100644
index 00000000..d011b09e
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/PnfTest.java
@@ -0,0 +1,58 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import static org.mockito.Matchers.anyObject;
+
+public class PnfTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testGetPnf() throws Exception {
+ Pnf pnf = new Pnf();
+ pnf.getPnfId();
+ pnf.getAdditionalProperties();
+ pnf.getAdminStatus();
+ pnf.getInMaint();
+ pnf.getOperationalStatus();
+ pnf.getPnfName();
+ pnf.getRelationshipList();
+ pnf.getResourceVersion();
+ }
+
+ @Test
+ public void testSetPnf() throws Exception {
+ Pnf pnf = new Pnf();
+ pnf.setPnfId("");
+ pnf.setAdditionalProperty("", anyObject());
+ pnf.setAdminStatus("");
+ pnf.setInMaint(true);
+ pnf.setOperationalStatus("");
+ pnf.setPnfName("");
+ pnf.setRelationshipList(null);
+ pnf.setResourceVersion("");
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ResourceRequestTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ResourceRequestTest.java
new file mode 100644
index 00000000..d2f55bd4
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ResourceRequestTest.java
@@ -0,0 +1,59 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import java.util.HashMap;
+
+import static org.mockito.Matchers.anyObject;
+
+public class ResourceRequestTest {
+
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testGetResourceRequest() throws Exception {
+ ResourceRequest rr = new ResourceRequest();
+ rr.getAdditionalProperties();
+ rr.getParameters();
+ rr.getResourceCustomizationUuid();
+ rr.getResourceInvariantUuid();
+ rr.getResourceName();
+ rr.getResourceUuid();
+ }
+
+ @Test
+ public void testSetResourceRequest() throws Exception {
+ ResourceRequest rr = new ResourceRequest();
+ HashMap<String , Object> hr = new HashMap<String, Object>();
+ rr.setAdditionalProperties(hr);
+ E2EParameters e2EParameters = new E2EParameters();
+ rr.setParameters(e2EParameters);
+ rr.setResourceCustomizationUuid("");
+ rr.setResourceInvariantUuid("");
+ rr.setResourceName("");
+ rr.setResourceUuid("");
+ }
+}
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
new file mode 100644
index 00000000..4d09f28e
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ResourceResponseTest.java
@@ -0,0 +1,46 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import java.util.List;
+
+public class ResourceResponseTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testGetResourceResponse() throws Exception {
+ ResourceResponse rr = new ResourceResponse();
+ rr.getEdges();
+ rr.getNodes();
+ }
+
+ @Test
+ public void testSetResourceResponse() throws Exception {
+ ResourceResponse rr = new ResourceResponse();
+ rr.setEdges(null);
+ rr.setNodes(null);
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/VpnBindingTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/VpnBindingTest.java
new file mode 100644
index 00000000..d5533422
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/VpnBindingTest.java
@@ -0,0 +1,42 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class VpnBindingTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testGetVpnBinding() throws Exception {
+ VpnBinding vb = new VpnBinding();
+ vb.getVpnBinding();
+ }
+
+ @Test
+ public void testSetVpnBinding() throws Exception {
+ VpnBinding vb = new VpnBinding();
+ vb.setVpnBinding(null);
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/VpnInformationTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/VpnInformationTest.java
new file mode 100644
index 00000000..817d21c6
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/VpnInformationTest.java
@@ -0,0 +1,71 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import static org.mockito.Matchers.anyObject;
+
+public class VpnInformationTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+ @Test
+ public void testGetVpnInformation() throws Exception {
+ VpnInformation vi = new VpnInformation();
+ vi.getDstAccessNodeId();
+ vi.getRelationshipList();
+ vi.getSrcAccessNodeId();
+ vi.getVpnId();
+ vi.getAccessClientId();
+ vi.getAccessProviderId();
+ vi.getAccessTopologyId();
+ vi.getAdditionalProperties();
+ vi.getDstAccessLtpId();
+ vi.getOperationalStatus();
+ vi.getResourceVersion();
+ vi.getSrcAccessLtpId();
+ vi.getVpnName();
+ vi.getVpnRegion();
+ vi.getVpnType();
+ }
+
+ @Test
+ public void testSetVpnInformation() throws Exception {
+ VpnInformation vi = new VpnInformation();
+ vi.setDstAccessNodeId("");
+ vi.setRelationshipList(null);
+ vi.setSrcAccessNodeId("");
+ vi.setVpnId("");
+ vi.setAccessClientId("");
+ vi.setAccessProviderId("");
+ vi.setAccessTopologyId("");
+ vi.setAdditionalProperty("", anyObject());
+ vi.setDstAccessLtpId("");
+ vi.setOperationalStatus("");
+ vi.setResourceVersion("");
+ vi.setSrcAccessLtpId("");
+ vi.setVpnName("");
+ vi.setVpnRegion("");
+ vi.setVpnType("");
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/resourcemodelinformationTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/resourcemodelinformationTest.java
new file mode 100644
index 00000000..c320c1b6
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/resourcemodelinformationTest.java
@@ -0,0 +1,44 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservice;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class resourcemodelinformationTest {
+
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testGetresourcemodelinformation() {
+ resourcemodelinformation rsi = new resourcemodelinformation();
+ rsi.getResourceModel();
+ }
+
+ @Test
+ public void testSetresourcemodelinformation() {
+ resourcemodelinformation rsi = new resourcemodelinformation();
+ ModelInfor mi = new ModelInfor();
+ rsi.setResourceModel(mi);
+ }
+}
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
new file mode 100644
index 00000000..a6c9113a
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ResponseServiceInstanceWrapperTest.java
@@ -0,0 +1,45 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservicemonitor;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.onap.usecaseui.server.bean.lcm.TemplateInput;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class ResponseServiceInstanceWrapperTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testGetServiceTemplateInput() throws Exception {
+ ResponseServiceInstanceWrapper rsi = new ResponseServiceInstanceWrapper();
+ rsi.getServiceInstanceListList();
+ }
+ @Test
+ public void testSetServiceTemplateInput() throws Exception {
+ ResponseServiceInstanceWrapper rsi = new ResponseServiceInstanceWrapper();
+ rsi.setServiceInstanceListList(null);
+ }
+}
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
new file mode 100644
index 00000000..481045fe
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ServiceInstanceListTest.java
@@ -0,0 +1,53 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservicemonitor;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ServiceInstanceListTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testGetServiceTemplateInput() throws Exception {
+ ServiceInstanceList sil = new ServiceInstanceList();
+ sil.getServiceInstance();
+ }
+ @Test
+ public void testGetServiceInstancename() throws Exception {
+ ServiceInstanceList sil = new ServiceInstanceList();
+ sil.getServiceInstancename();
+ }
+ @Test
+ public void testSetServiceInstance() throws Exception {
+ ServiceInstanceList sil = new ServiceInstanceList();
+ sil.setServiceInstance(null);
+ }
+ @Test
+ public void testSetServiceInstancename() throws Exception {
+ ServiceInstanceList sil = new ServiceInstanceList();
+ sil.setServiceInstancename(null);
+ }
+
+
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ServiceInstanceListWrapperTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ServiceInstanceListWrapperTest.java
new file mode 100644
index 00000000..f7a48e31
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ServiceInstanceListWrapperTest.java
@@ -0,0 +1,41 @@
+/**
+ * Copyright (C) 2020 Huawei, Inc. and others. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.onap.usecaseui.server.bean.lcm.sotne2eservicemonitor;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ServiceInstanceListWrapperTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+ @Test
+ public void testGetServiceIntances() throws Exception {
+ ServiceInstanceListWrapper siw = new ServiceInstanceListWrapper();
+ siw.getServiceIntances();
+ }
+ @Test
+ public void testSetServiceIntances() throws Exception {
+ ServiceInstanceListWrapper siw = new ServiceInstanceListWrapper();
+ siw.setServiceIntances(null);
+ }
+
+}