UT code for the SOTN 77/103377/2
authormukesh.paliwal1@huawei.com <mukesh.paliwal1@huawei.com>
Mon, 9 Mar 2020 16:13:10 +0000 (21:43 +0530)
committerTao Shen <shentao@chinamobile.com>
Tue, 10 Mar 2020 12:34:06 +0000 (12:34 +0000)
Issue-ID: USECASEUI-378

Signed-off-by: mukesh.paliwal1@huawei.com <mukesh.paliwal1@huawei.com>
Change-Id: I03a7ebdbf57973d347eecf9754519cd52d0daeba

19 files changed:
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/AllottedResourceTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ConnectivityTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EParametersTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EServiceDeleteTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/E2EServiceTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ModelConfigTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ModelInforTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ModelTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/NodeTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/PinterfaceTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/PnfTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ResourceRequestTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/ResourceResponseTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/VpnBindingTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/VpnInformationTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservice/resourcemodelinformationTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ResponseServiceInstanceWrapperTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ServiceInstanceListTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/lcm/sotne2eservicemonitor/ServiceInstanceListWrapperTest.java [new file with mode: 0644]

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 (file)
index 0000000..82fe2de
--- /dev/null
@@ -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 (file)
index 0000000..3d2871f
--- /dev/null
@@ -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 (file)
index 0000000..5436ed3
--- /dev/null
@@ -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 (file)
index 0000000..2ff7574
--- /dev/null
@@ -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 (file)
index 0000000..2117b66
--- /dev/null
@@ -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 (file)
index 0000000..a8761d6
--- /dev/null
@@ -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 (file)
index 0000000..97cb5cf
--- /dev/null
@@ -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 (file)
index 0000000..f540d7f
--- /dev/null
@@ -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 (file)
index 0000000..c7b8ca4
--- /dev/null
@@ -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 (file)
index 0000000..c197e6c
--- /dev/null
@@ -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 (file)
index 0000000..d011b09
--- /dev/null
@@ -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 (file)
index 0000000..d2f55bd
--- /dev/null
@@ -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 (file)
index 0000000..4d09f28
--- /dev/null
@@ -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 (file)
index 0000000..d553342
--- /dev/null
@@ -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 (file)
index 0000000..817d21c
--- /dev/null
@@ -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 (file)
index 0000000..c320c1b
--- /dev/null
@@ -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 (file)
index 0000000..a6c9113
--- /dev/null
@@ -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 (file)
index 0000000..481045f
--- /dev/null
@@ -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 (file)
index 0000000..f7a48e3
--- /dev/null
@@ -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);
+    }
+
+}