Add test code related to nsmf. 42/102042/1
authorhekeguang <hekeguang@chinamobile.com>
Thu, 20 Feb 2020 06:02:10 +0000 (14:02 +0800)
committerhekeguang <hekeguang@chinamobile.com>
Thu, 20 Feb 2020 06:02:22 +0000 (14:02 +0800)
Issue-ID: USECASEUI-368
Issue-ID: USECASEUI-369
Issue-ID: USECASEUI-370
Change-Id: I3be64983662748eea295787bf19fbd03fcf25cd8
Signed-off-by: hekeguang <hekeguang@chinamobile.com>
52 files changed:
server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreateResponseTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreateResultTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreationParametersTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreationRequestInputsTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreationRequestTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreationServiceTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/csmf/OrderInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/csmf/OrderListTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/csmf/ServiceCreateResultTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/csmf/SlicingOrderDetailTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/csmf/SlicingOrderTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/common/PagedResultTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/common/ResultHeaderTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/common/ServiceResultTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceListTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceOnlineUserInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceOnlineUserListTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceTotalBandwidthInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceTotalBandwidthListTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/SlicingKpiReqInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/TotalBandwidthInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/TrafficReqInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/UsageTrafficInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/UsageTrafficListTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/UserNumberInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/AllottedResourceUsefulInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedBusinessInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedNsiInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedNsiListTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/IncludedNssiInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiDetailListTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiRelatedNssiInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiServiceInstanceInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiServiceInstanceListTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NssiServiceInstanceInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NssiServiceInstanceListTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/ServiceOperationProgressTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/ServiceOperationResultTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessDetailsTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessListTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/SubscriberInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/BusinessDemandInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/NsiAndSubNssiInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/NstInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskAuditInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskCreationInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskCreationProgressTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskListTest.java [new file with mode: 0644]

diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreateResponseTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreateResponseTest.java
new file mode 100644 (file)
index 0000000..c01ea39
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 2020 CMCC, 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.csmf;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class CreateResponseTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetCreateResponse() throws Exception {
+
+        CreateResponse createResponse = new CreateResponse();
+
+        CreateResult createResult = new CreateResult();
+        createResult.setOperationId("wert3423");
+        createResult.setServiceId("sdrffd");
+
+        createResponse.setService(createResult);
+        createResponse.getService();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreateResultTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreateResultTest.java
new file mode 100644 (file)
index 0000000..0523407
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2020 CMCC, 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.csmf;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class CreateResultTest {
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetCreateResult() throws Exception {
+
+        CreateResult createResult = new CreateResult();
+        createResult.setOperationId("wert3423");
+        createResult.setServiceId("sdrffd");
+
+        createResult.getOperationId();
+        createResult.getServiceId();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreationParametersTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreationParametersTest.java
new file mode 100644 (file)
index 0000000..0c9f5f7
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) 2020 CMCC, 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.csmf;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class CreationParametersTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetCreationParameters() throws Exception {
+
+        CreationRequestInputs creationRequestInputs = new CreationRequestInputs();
+        creationRequestInputs.setCoverageAreaList("1233");
+        creationRequestInputs.setExpDataRateDL(123);
+        creationRequestInputs.setExpDataRateUL(234);
+        creationRequestInputs.setLatency(12);
+        creationRequestInputs.setMaxNumberofUEs(123);
+        creationRequestInputs.setResourceSharingLevel("share");
+        creationRequestInputs.setUemobilityLevel("mobile");
+        creationRequestInputs.setUseInterval("230");
+
+        CreationParameters creationParameters = new CreationParameters();
+        creationParameters.setRequestInputs(creationRequestInputs);
+        creationParameters.getRequestInputs();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreationRequestInputsTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreationRequestInputsTest.java
new file mode 100644 (file)
index 0000000..27e4a7f
--- /dev/null
@@ -0,0 +1,54 @@
+/*
+ * Copyright (C) 2020 CMCC, 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.csmf;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class CreationRequestInputsTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetCreationRequestInputs() throws Exception {
+
+        CreationRequestInputs creationRequestInputs = new CreationRequestInputs();
+        creationRequestInputs.setCoverageAreaList("1233");
+        creationRequestInputs.setExpDataRateDL(123);
+        creationRequestInputs.setExpDataRateUL(234);
+        creationRequestInputs.setLatency(12);
+        creationRequestInputs.setMaxNumberofUEs(123);
+        creationRequestInputs.setResourceSharingLevel("share");
+        creationRequestInputs.setUemobilityLevel("mobile");
+        creationRequestInputs.setUseInterval("230");
+
+        creationRequestInputs.getCoverageAreaList();
+        creationRequestInputs.getExpDataRateDL();
+        creationRequestInputs.getExpDataRateUL();
+        creationRequestInputs.getLatency();
+        creationRequestInputs.getMaxNumberofUEs();
+        creationRequestInputs.getResourceSharingLevel();
+        creationRequestInputs.getUemobilityLevel();
+        creationRequestInputs.getUseInterval();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreationRequestTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreationRequestTest.java
new file mode 100644 (file)
index 0000000..158d688
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2020 CMCC, 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.csmf;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class CreationRequestTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetCreationRequest() throws Exception {
+
+        CreationService creationService = new CreationService();
+        creationService.setDescription("test");
+        creationService.setGlobalSubscriberId("5gCustomer");
+        creationService.setName("csmf");
+
+        CreationParameters creationParameters = new CreationParameters();
+        creationService.setParameters(creationParameters);
+        creationService.setServiceInvariantUuid("1234eedrrrt");
+        creationService.setServiceType("5g");
+        creationService.setServiceUuid("we2334322344");
+
+        CreationRequest creationRequest = new CreationRequest();
+        creationRequest.setService(creationService);
+        creationRequest.getService();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreationServiceTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/csmf/CreationServiceTest.java
new file mode 100644 (file)
index 0000000..bd22a19
--- /dev/null
@@ -0,0 +1,54 @@
+/*
+ * Copyright (C) 2020 CMCC, 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.csmf;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class CreationServiceTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetCreationService() throws Exception {
+
+        CreationService creationService = new CreationService();
+        creationService.setDescription("test");
+        creationService.setGlobalSubscriberId("5gCustomer");
+        creationService.setName("csmf");
+
+        CreationParameters creationParameters = new CreationParameters();
+        creationService.setParameters(creationParameters);
+        creationService.setServiceInvariantUuid("1234eedrrrt");
+        creationService.setServiceType("5g");
+        creationService.setServiceUuid("we2334322344");
+
+        creationService.getDescription();
+        creationService.getGlobalSubscriberId();
+        creationService.getName();
+        creationService.getParameters();
+        creationService.getServiceInvariantUuid();
+        creationService.getServiceType();
+        creationService.getServiceUuid();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/csmf/OrderInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/csmf/OrderInfoTest.java
new file mode 100644 (file)
index 0000000..9c59541
--- /dev/null
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2020 CMCC, 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.csmf;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class OrderInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetOrderInfo() throws Exception {
+
+        OrderInfo orderInfo = new OrderInfo();
+        orderInfo.setOrder_creation_time("34562123");
+        orderInfo.setOrder_id("sde2345rr");
+        orderInfo.setOrder_status("creating");
+        orderInfo.setService_snssai("sdffg34-344");
+        orderInfo.setOrder_name("dfer-fgree");
+        orderInfo.setOrder_index("1");
+        orderInfo.setLast_operation_type("activate");
+        orderInfo.setLast_operation_progress("79");
+
+        orderInfo.getOrder_creation_time();
+        orderInfo.getOrder_id();
+        orderInfo.getOrder_status();
+        orderInfo.getOrder_index();
+        orderInfo.getOrder_name();
+        orderInfo.getService_snssai();
+        orderInfo.getLast_operation_progress();
+        orderInfo.getLast_operation_type();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/csmf/OrderListTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/csmf/OrderListTest.java
new file mode 100644 (file)
index 0000000..f71a77e
--- /dev/null
@@ -0,0 +1,59 @@
+/*
+ * Copyright (C) 2020 CMCC, 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.csmf;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class OrderListTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetOrderList() throws Exception {
+
+        OrderInfo orderInfo = new OrderInfo();
+        orderInfo.setOrder_creation_time("34562123");
+        orderInfo.setOrder_id("sde2345rr");
+        orderInfo.setOrder_status("creating");
+        orderInfo.setService_snssai("sdffg34-344");
+        orderInfo.setOrder_name("dfer-fgree");
+        orderInfo.setOrder_index("1");
+        orderInfo.setLast_operation_type("activate");
+        orderInfo.setLast_operation_progress("79");
+
+        OrderList orderList = new OrderList();
+        orderList.setRecord_number(3);
+
+        List<OrderInfo> orderInfoList = new ArrayList<>();
+        orderInfoList.add(orderInfo);
+        orderList.setSlicing_order_list(orderInfoList);
+
+        orderList.getRecord_number();
+        orderList.getSlicing_order_list();
+
+        OrderList orderList1 = new OrderList(3, orderInfoList);
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/csmf/ServiceCreateResultTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/csmf/ServiceCreateResultTest.java
new file mode 100644 (file)
index 0000000..514a361
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2020 CMCC, 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.csmf;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ServiceCreateResultTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetServiceCreateResult() throws Exception {
+
+        ServiceCreateResult serviceCreateResult = new ServiceCreateResult();
+        serviceCreateResult.setOperation_id("3456-rtff-3456-trew");
+        serviceCreateResult.setService_id("2345-rtyu-3567");
+
+        serviceCreateResult.getOperation_id();
+        serviceCreateResult.getService_id();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/csmf/SlicingOrderDetailTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/csmf/SlicingOrderDetailTest.java
new file mode 100644 (file)
index 0000000..a4933c0
--- /dev/null
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2020 CMCC, 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.csmf;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class SlicingOrderDetailTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetSlicingOrderDetail() throws Exception {
+
+        SlicingOrderDetail slicingOrderDetail = new SlicingOrderDetail();
+
+        slicingOrderDetail.setCoverageArea("sdfgdert");
+        slicingOrderDetail.setExpDataRateDL(100);
+        slicingOrderDetail.setExpDataRateUL(200);
+        slicingOrderDetail.setLatency(20);
+        slicingOrderDetail.setMaxNumberofUEs(200);
+        slicingOrderDetail.setUEMobilityLevel("share");
+        slicingOrderDetail.setName("csmf");
+        slicingOrderDetail.setResourceSharingLevel("share");
+        slicingOrderDetail.setUseInterval("20");
+
+        slicingOrderDetail.getCoverageArea();
+        slicingOrderDetail.getExpDataRateDL();
+        slicingOrderDetail.getExpDataRateUL();
+        slicingOrderDetail.getLatency();
+        slicingOrderDetail.getMaxNumberofUEs();
+        slicingOrderDetail.getUEMobilityLevel();
+        slicingOrderDetail.getName();
+        slicingOrderDetail.getResourceSharingLevel();
+        slicingOrderDetail.getUseInterval();
+        
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/csmf/SlicingOrderTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/csmf/SlicingOrderTest.java
new file mode 100644 (file)
index 0000000..c4338be
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2020 CMCC, 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.csmf;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class SlicingOrderTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetSlicingOrder() throws Exception {
+
+        SlicingOrderDetail slicingOrderDetail = new SlicingOrderDetail();
+
+        slicingOrderDetail.setCoverageArea("sdfgdert");
+        slicingOrderDetail.setExpDataRateDL(100);
+        slicingOrderDetail.setExpDataRateUL(200);
+        slicingOrderDetail.setLatency(20);
+        slicingOrderDetail.setMaxNumberofUEs(200);
+        slicingOrderDetail.setUEMobilityLevel("share");
+        slicingOrderDetail.setName("csmf");
+        slicingOrderDetail.setResourceSharingLevel("share");
+        slicingOrderDetail.setUseInterval("20");
+
+        SlicingOrder slicingOrder = new SlicingOrder();
+        slicingOrder.setSlicing_order_info(slicingOrderDetail);
+        slicingOrder.getSlicing_order_info();
+    }
+
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/common/PagedResultTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/common/PagedResultTest.java
new file mode 100644 (file)
index 0000000..ec9ad83
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.common;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.onap.usecaseui.server.bean.lcm.TemplateInput;
+
+public class PagedResultTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testGetPagedResult() throws Exception {
+
+        PagedResult pagedResult = new PagedResult(0, Collections.EMPTY_LIST);
+        pagedResult.getPagedList();
+        pagedResult.getPagedListSize();
+    }
+
+    @Test
+    public void testSetPagedResult() throws Exception {
+
+        PagedResult pagedResult = new PagedResult(0, Collections.EMPTY_LIST);
+
+        pagedResult.setPagedList(Collections.EMPTY_LIST);
+        pagedResult.setPagedListSize(0);
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/common/ResultHeaderTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/common/ResultHeaderTest.java
new file mode 100644 (file)
index 0000000..4e86bb2
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.common;
+
+import java.util.Collections;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ResultHeaderTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testGetResultHeader() throws Exception {
+
+        ResultHeader resultHeader = new ResultHeader("200", "command is ok");
+
+        resultHeader.getResult_code();
+        resultHeader.getResult_message();
+    }
+
+    @Test
+    public void testSetResultHeader() throws Exception {
+
+        ResultHeader resultHeader = new ResultHeader("200", "command is ok");
+
+        resultHeader.setResult_code("500");
+        resultHeader.setResult_message("command is failed!");
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/common/ServiceResultTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/common/ServiceResultTest.java
new file mode 100644 (file)
index 0000000..1152047
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.common;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ServiceResultTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testGetServiceResult() throws Exception {
+
+        ServiceResult serviceResult = new ServiceResult();
+        serviceResult.getResult_body();
+        serviceResult.getResult_header();
+    }
+
+    @Test
+    public void testSetResultHeader() throws Exception {
+
+        ServiceResult serviceResult = new ServiceResult();
+        ResultHeader resultHeader = new ResultHeader("200", "command is ok");
+        serviceResult.setResult_header(resultHeader);
+        serviceResult.setResult_body("test body");
+
+        ServiceResult serviceResult1 = new ServiceResult(resultHeader, "test body");
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceInfoTest.java
new file mode 100644 (file)
index 0000000..9cf9076
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.monitor;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.onap.usecaseui.server.bean.nsmf.common.ResultHeader;
+import org.onap.usecaseui.server.bean.nsmf.common.ServiceResult;
+
+public class ServiceInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetServiceInfo() throws Exception {
+
+        ServiceInfo serviceInfo = new ServiceInfo();
+        serviceInfo.setServiceId("0098-ji89-90ui-u878");
+        serviceInfo.getServiceId();
+
+    }
+
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceListTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceListTest.java
new file mode 100644 (file)
index 0000000..68856ca
--- /dev/null
@@ -0,0 +1,51 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.monitor;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ServiceListTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetServiceList() throws Exception {
+
+        ServiceInfo serviceInfo1 = new ServiceInfo();
+        serviceInfo1.setServiceId("0098-ji89-90ui-u878");
+
+        ServiceInfo serviceInfo2 = new ServiceInfo();
+        serviceInfo2.setServiceId("1234-9845-ui87-io89");
+
+        ServiceList serviceList = new ServiceList();
+        List<ServiceInfo> serviceInfoList = new ArrayList<>();
+        serviceInfoList.add(serviceInfo1);
+        serviceInfoList.add(serviceInfo2);
+
+        serviceList.setServiceInfoList(serviceInfoList);
+        serviceList.getServiceInfoList();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceOnlineUserInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceOnlineUserInfoTest.java
new file mode 100644 (file)
index 0000000..f1de254
--- /dev/null
@@ -0,0 +1,51 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.monitor;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ServiceOnlineUserInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetServiceOnlineUserInfo() throws Exception {
+
+        ServiceOnlineUserInfo serviceOnlineUserInfo = new ServiceOnlineUserInfo();
+
+        List<UserNumberInfo> userNumberInfoList = new ArrayList<>();
+        UserNumberInfo  userNumberInfo = new UserNumberInfo();
+        userNumberInfo.setUserNumber("999");
+        userNumberInfo.setTimeStamp("1576143554000");
+        userNumberInfoList.add(userNumberInfo);
+
+        serviceOnlineUserInfo.setUserNumberInfoList(userNumberInfoList);
+        serviceOnlineUserInfo.setId("90iu-u789-iu89-jh45");
+
+        serviceOnlineUserInfo.getId();
+        serviceOnlineUserInfo.getUserNumberInfoList();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceOnlineUserListTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceOnlineUserListTest.java
new file mode 100644 (file)
index 0000000..2f7519b
--- /dev/null
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.monitor;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ServiceOnlineUserListTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetServiceOnlineUserList() throws Exception {
+
+        ServiceOnlineUserList serviceOnlineUserList = new ServiceOnlineUserList();
+        List<ServiceOnlineUserInfo> serviceOnlineUserInfoList = new ArrayList<>();
+
+        ServiceOnlineUserInfo serviceOnlineUserInfo = new ServiceOnlineUserInfo();
+
+        List<UserNumberInfo> userNumberInfoList = new ArrayList<>();
+        UserNumberInfo  userNumberInfo = new UserNumberInfo();
+        userNumberInfo.setUserNumber("999");
+        userNumberInfo.setTimeStamp("1576143554000");
+        userNumberInfoList.add(userNumberInfo);
+
+        serviceOnlineUserInfo.setUserNumberInfoList(userNumberInfoList);
+        serviceOnlineUserInfo.setId("90iu-u789-iu89-jh45");
+
+        serviceOnlineUserInfoList.add(serviceOnlineUserInfo);
+        serviceOnlineUserList.setServiceOnlineUserInfoList(serviceOnlineUserInfoList);
+        serviceOnlineUserList.getServiceOnlineUserInfoList();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceTotalBandwidthInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceTotalBandwidthInfoTest.java
new file mode 100644 (file)
index 0000000..378de5c
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.monitor;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ServiceTotalBandwidthInfoTest {
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetServiceTotalBandwidthInfo() throws Exception {
+
+        ServiceTotalBandwidthInfo serviceTotalBandwidthInfo = new ServiceTotalBandwidthInfo();
+
+        List<TotalBandwidthInfo> totalBandwidthInfoList = new ArrayList<>();
+        TotalBandwidthInfo totalBandwidthInfo = new TotalBandwidthInfo();
+        totalBandwidthInfo.setBandwidth("28");
+        totalBandwidthInfo.setTimestamp("1575175500000");
+
+        totalBandwidthInfoList.add(totalBandwidthInfo);
+        serviceTotalBandwidthInfo.setTotalBandwidthInfoList(totalBandwidthInfoList);
+        serviceTotalBandwidthInfo.setId("90iu-u789-iu89-jh45");
+
+        serviceTotalBandwidthInfo.getId();
+        serviceTotalBandwidthInfo.getTotalBandwidthInfoList();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceTotalBandwidthListTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceTotalBandwidthListTest.java
new file mode 100644 (file)
index 0000000..b1af752
--- /dev/null
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.monitor;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ServiceTotalBandwidthListTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetServiceTotalBandwidthList() throws Exception {
+
+        ServiceTotalBandwidthList serviceTotalBandwidthList = new ServiceTotalBandwidthList();
+        List<ServiceTotalBandwidthInfo> serviceTotalBandwidthInfoList = new ArrayList<>();
+
+        ServiceTotalBandwidthInfo serviceTotalBandwidthInfo = new ServiceTotalBandwidthInfo();
+
+        List<TotalBandwidthInfo> totalBandwidthInfoList = new ArrayList<>();
+        TotalBandwidthInfo totalBandwidthInfo = new TotalBandwidthInfo();
+        totalBandwidthInfo.setBandwidth("28");
+        totalBandwidthInfo.setTimestamp("1575175500000");
+
+        totalBandwidthInfoList.add(totalBandwidthInfo);
+        serviceTotalBandwidthInfo.setTotalBandwidthInfoList(totalBandwidthInfoList);
+        serviceTotalBandwidthInfo.setId("90iu-u789-iu89-jh45");
+
+        serviceTotalBandwidthInfoList.add(serviceTotalBandwidthInfo);
+        serviceTotalBandwidthList.setServiceTotalBandwidthInfoList(serviceTotalBandwidthInfoList);
+
+        serviceTotalBandwidthList.getServiceTotalBandwidthInfoList();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/SlicingKpiReqInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/SlicingKpiReqInfoTest.java
new file mode 100644 (file)
index 0000000..bc88378
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.monitor;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class SlicingKpiReqInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetSlicingKpiReqInfo() throws Exception {
+
+        SlicingKpiReqInfo slicingKpiReqInfo = new SlicingKpiReqInfo();
+        slicingKpiReqInfo.setHours(4);
+        slicingKpiReqInfo.setId("23er-564r-43er-56gt");
+        slicingKpiReqInfo.setTimeStamp("1576143554000");
+
+        slicingKpiReqInfo.getHours();
+        slicingKpiReqInfo.getId();
+        slicingKpiReqInfo.getTimeStamp();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/TotalBandwidthInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/TotalBandwidthInfoTest.java
new file mode 100644 (file)
index 0000000..a06fce3
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.monitor;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class TotalBandwidthInfoTest {
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetTotalBandwidthInfo() throws Exception {
+
+        TotalBandwidthInfo totalBandwidthInfo = new TotalBandwidthInfo();
+        totalBandwidthInfo.setBandwidth("28");
+        totalBandwidthInfo.setTimestamp("1575175500000");
+
+        totalBandwidthInfo.getBandwidth();
+        totalBandwidthInfo.getTimestamp();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/TrafficReqInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/TrafficReqInfoTest.java
new file mode 100644 (file)
index 0000000..ff76b51
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.monitor;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class TrafficReqInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetTrafficReqInfo() throws Exception {
+
+        TrafficReqInfo trafficReqInfo = new TrafficReqInfo();
+        trafficReqInfo.setId("23er-564r-43er-56gt");
+        trafficReqInfo.setTimeStamp("1576143554000");
+
+        trafficReqInfo.getId();
+        trafficReqInfo.getTimeStamp();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/UsageTrafficInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/UsageTrafficInfoTest.java
new file mode 100644 (file)
index 0000000..3aa65cf
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.monitor;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class UsageTrafficInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetUsageTrafficInfo() throws Exception {
+
+        UsageTrafficInfo usageTrafficInfo = new UsageTrafficInfo();
+        usageTrafficInfo.setTrafficData("1064");
+        usageTrafficInfo.setServiceId("23er-564r-43er-56gt");
+
+        usageTrafficInfo.getServiceId();
+        usageTrafficInfo.getTrafficData();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/UsageTrafficListTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/UsageTrafficListTest.java
new file mode 100644 (file)
index 0000000..481c7a8
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.monitor;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class UsageTrafficListTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetUsageTrafficList() throws Exception {
+
+        UsageTrafficList usageTrafficList = new UsageTrafficList();
+
+        UsageTrafficInfo usageTrafficInfo = new UsageTrafficInfo();
+        usageTrafficInfo.setTrafficData("1064");
+        usageTrafficInfo.setServiceId("23er-564r-43er-56gt");
+
+        List<UsageTrafficInfo> usageTrafficInfoList = new ArrayList<>();
+        usageTrafficInfoList.add(usageTrafficInfo);
+
+        usageTrafficList.setUsageTrafficInfoList(usageTrafficInfoList);
+        usageTrafficList.getUsageTrafficInfoList();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/UserNumberInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/monitor/UserNumberInfoTest.java
new file mode 100644 (file)
index 0000000..8ce48a1
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.monitor;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class UserNumberInfoTest {
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetUserNumberInfo() throws Exception {
+
+        UserNumberInfo  userNumberInfo = new UserNumberInfo();
+        userNumberInfo.setUserNumber("999");
+        userNumberInfo.setTimeStamp("1576143554000");
+
+        userNumberInfo.getTimeStamp();
+        userNumberInfo.getUserNumber();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/AllottedResourceUsefulInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/AllottedResourceUsefulInfoTest.java
new file mode 100644 (file)
index 0000000..7b2618f
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.onap.usecaseui.server.bean.nsmf.monitor.ServiceInfo;
+
+public class AllottedResourceUsefulInfoTest {
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetServiceInfo() throws Exception {
+
+        AllottedResourceUsefulInfo allottedResourceUsefulInfo = new AllottedResourceUsefulInfo();
+
+        allottedResourceUsefulInfo.setNsiId("0098-ji89-90ui-u878");
+        allottedResourceUsefulInfo.setModelVersionId("we34-rt56-fg56-tyyu");
+        allottedResourceUsefulInfo.setModelInvariantId("ser4-rt56-tyu7-rt45");
+
+        allottedResourceUsefulInfo.getNsiId();
+        allottedResourceUsefulInfo.getModelInvariantId();
+        allottedResourceUsefulInfo.getModelVersionId();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedBusinessInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedBusinessInfoTest.java
new file mode 100644 (file)
index 0000000..bda9f46
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class HostedBusinessInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetHostedBusinessInfo() throws Exception {
+
+        HostedBusinessInfo hostedBusinessInfo = new HostedBusinessInfo();
+
+        hostedBusinessInfo.setOrchestrationStatus("activated");
+        hostedBusinessInfo.setEnvironmentContext("1-10101");
+        hostedBusinessInfo.setServiceType("embb");
+        hostedBusinessInfo.setServiceInstanceName("CSMFService");
+        hostedBusinessInfo.setServiceInstanceId("774dadbf-e628-4f4f-869a-67c307777af3");
+
+        hostedBusinessInfo.getEnvironmentContext();
+        hostedBusinessInfo.getOrchestrationStatus();
+        hostedBusinessInfo.getServiceInstanceId();
+        hostedBusinessInfo.getServiceInstanceName();
+        hostedBusinessInfo.getServiceType();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedNsiInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedNsiInfoTest.java
new file mode 100644 (file)
index 0000000..cbcfcd7
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class HostedNsiInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetHostedNsiInfo() throws Exception {
+
+        HostedNsiInfo hostedNsiInfo = new HostedNsiInfo();
+
+        hostedNsiInfo.setOrchestrationStatus("activated");
+        hostedNsiInfo.setServiceInstanceName("eMBB_Slice_NSI_5GCustomer");
+        hostedNsiInfo.setServiceType("eMBB");
+        hostedNsiInfo.setServiceInstanceId("5G-888");
+
+        hostedNsiInfo.getOrchestrationStatus();
+        hostedNsiInfo.getServiceInstanceId();
+        hostedNsiInfo.getServiceInstanceName();
+        hostedNsiInfo.getServiceType();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedNsiListTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedNsiListTest.java
new file mode 100644 (file)
index 0000000..4cbd426
--- /dev/null
@@ -0,0 +1,54 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class HostedNsiListTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetHostedNsiList() throws Exception {
+
+        HostedNsiList hostedNsiList = new HostedNsiList();
+        List<HostedNsiInfo> hostedNsiInfoList = new ArrayList<>();
+
+        HostedNsiInfo hostedNsiInfo = new HostedNsiInfo();
+
+        hostedNsiInfo.setOrchestrationStatus("activated");
+        hostedNsiInfo.setServiceInstanceName("eMBB_Slice_NSI_5GCustomer");
+        hostedNsiInfo.setServiceType("eMBB");
+        hostedNsiInfo.setServiceInstanceId("5G-888");
+
+        hostedNsiInfoList.add(hostedNsiInfo);
+        hostedNsiList.setHostedNsiInfoList(hostedNsiInfoList);
+
+        hostedNsiList.getHostedNsiInfoList();
+        hostedNsiList.getRecordNumber();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/IncludedNssiInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/IncludedNssiInfoTest.java
new file mode 100644 (file)
index 0000000..3c3c6b1
--- /dev/null
@@ -0,0 +1,51 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class IncludedNssiInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetIncludedNssiInfo() throws Exception {
+
+        IncludedNssiInfo includedNssiInfo = new IncludedNssiInfo();
+        includedNssiInfo.setServiceInstanceOrder("1");
+        includedNssiInfo.setServiceInstanceName("eMBB_e2e_Slice_Service_5GCustomer");
+        includedNssiInfo.setOrchestrationStatus("activated");
+        includedNssiInfo.setEnvironmentContext("cn");
+        includedNssiInfo.setServiceInstanceId("5G-777");
+        includedNssiInfo.setServiceType("eMBB");
+
+        includedNssiInfo.getEnvironmentContext();
+        includedNssiInfo.getOrchestrationStatus();
+        includedNssiInfo.getServiceInstanceId();
+        includedNssiInfo.getServiceInstanceName();
+        includedNssiInfo.getServiceInstanceOrder();
+        includedNssiInfo.getServiceType();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiDetailListTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiDetailListTest.java
new file mode 100644 (file)
index 0000000..29bb6f3
--- /dev/null
@@ -0,0 +1,64 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class NsiDetailListTest {
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetNsiDetailList() throws Exception {
+
+        NsiDetailList nsiDetailList = new NsiDetailList();
+
+        List<HostedBusinessInfo> hostedBusinessInfoList = new ArrayList<>();
+        List<IncludedNssiInfo> includedNssiInfoList = new ArrayList<>();
+
+        HostedBusinessInfo hostedBusinessInfo = new HostedBusinessInfo();
+        hostedBusinessInfo.setOrchestrationStatus("activated");
+        hostedBusinessInfo.setEnvironmentContext("1-10101");
+        hostedBusinessInfo.setServiceType("embb");
+        hostedBusinessInfo.setServiceInstanceName("CSMFService");
+        hostedBusinessInfo.setServiceInstanceId("774dadbf-e628-4f4f-869a-67c307777af3");
+        hostedBusinessInfoList.add(hostedBusinessInfo);
+
+        IncludedNssiInfo includedNssiInfo = new IncludedNssiInfo();
+        includedNssiInfo.setServiceInstanceOrder("1");
+        includedNssiInfo.setServiceInstanceName("eMBB_e2e_Slice_Service_5GCustomer");
+        includedNssiInfo.setOrchestrationStatus("activated");
+        includedNssiInfo.setEnvironmentContext("cn");
+        includedNssiInfo.setServiceInstanceId("5G-777");
+        includedNssiInfo.setServiceType("eMBB");
+        includedNssiInfoList.add(includedNssiInfo);
+
+        nsiDetailList.setIncludedNssiInfoList(includedNssiInfoList);
+        nsiDetailList.setHostedBusinessInfoList(hostedBusinessInfoList);
+
+        nsiDetailList.getHostedBusinessInfoList();
+        nsiDetailList.getIncludedNssiInfoList();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiInfoTest.java
new file mode 100644 (file)
index 0000000..e4273be
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class NsiInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetNsiInfo() throws Exception {
+
+        NsiInfo nsiInfo = new NsiInfo();
+
+        nsiInfo.setNsiId("5G-888");
+        nsiInfo.setNsiName("eMBB_Slice_NSI_5GCustomer");
+        nsiInfo.setNsiOrchestrationStatus("activated");
+        nsiInfo.setNsiType("eMBB");
+
+        nsiInfo.getNsiId();
+        nsiInfo.getNsiName();
+        nsiInfo.getNsiOrchestrationStatus();
+        nsiInfo.getNsiType();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiRelatedNssiInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiRelatedNssiInfoTest.java
new file mode 100644 (file)
index 0000000..c359982
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class NsiRelatedNssiInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetNsiRelatedNssiInfo() throws Exception {
+
+        NsiRelatedNssiInfo nsiRelatedNssiInfo = new NsiRelatedNssiInfo();
+
+        nsiRelatedNssiInfo.setTnSuggestNssiId("5G-666");
+        nsiRelatedNssiInfo.setTnSuggestNssiName("eMBB_Slice_NSSI_5GCustomer");
+        nsiRelatedNssiInfo.setAnSuggestNssiId("5G-666");
+        nsiRelatedNssiInfo.setAnSuggestNssiName("eMBB_Slice_NSSI_5GCustomer");
+        nsiRelatedNssiInfo.setCnSuggestNssiId("5G-666");
+        nsiRelatedNssiInfo.setCnSuggestNssiName("eMBB_Slice_NSSI_5GCustomer");
+
+        nsiRelatedNssiInfo.getAnSuggestNssiId();
+        nsiRelatedNssiInfo.getAnSuggestNssiName();
+        nsiRelatedNssiInfo.getCnSuggestNssiId();
+        nsiRelatedNssiInfo.getCnSuggestNssiName();
+        nsiRelatedNssiInfo.getTnSuggestNssiId();
+        nsiRelatedNssiInfo.getTnSuggestNssiName();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiServiceInstanceInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiServiceInstanceInfoTest.java
new file mode 100644 (file)
index 0000000..4237a94
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class NsiServiceInstanceInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetNsiServiceInstanceInfo() throws Exception {
+
+        NsiServiceInstanceInfo nsiServiceInstanceInfo = new NsiServiceInstanceInfo();
+
+        nsiServiceInstanceInfo.setServiceType("eMBB");
+        nsiServiceInstanceInfo.setServiceInstanceName("eMBB_Slice_NSSI_5GCustomer");
+        nsiServiceInstanceInfo.setServiceInstanceId("5G-999");
+        nsiServiceInstanceInfo.setOrchestrationStatus("activated");
+        nsiServiceInstanceInfo.setServiceInstanceOrder("1");
+
+        nsiServiceInstanceInfo.getOrchestrationStatus();
+        nsiServiceInstanceInfo.getServiceInstanceId();
+        nsiServiceInstanceInfo.getServiceInstanceName();
+        nsiServiceInstanceInfo.getServiceInstanceOrder();
+        nsiServiceInstanceInfo.getServiceType();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiServiceInstanceListTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiServiceInstanceListTest.java
new file mode 100644 (file)
index 0000000..a32b349
--- /dev/null
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class NsiServiceInstanceListTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetNsiServiceInstanceList() throws Exception {
+
+        NsiServiceInstanceList nsiServiceInstanceList = new NsiServiceInstanceList();
+        List<NsiServiceInstanceInfo> nsiServiceInstanceInfoList = new ArrayList<>();
+
+        NsiServiceInstanceInfo nsiServiceInstanceInfo = new NsiServiceInstanceInfo();
+        nsiServiceInstanceInfo.setServiceType("eMBB");
+        nsiServiceInstanceInfo.setServiceInstanceName("eMBB_Slice_NSSI_5GCustomer");
+        nsiServiceInstanceInfo.setServiceInstanceId("5G-999");
+        nsiServiceInstanceInfo.setOrchestrationStatus("activated");
+        nsiServiceInstanceInfo.setServiceInstanceOrder("1");
+        nsiServiceInstanceInfoList.add(nsiServiceInstanceInfo);
+
+        nsiServiceInstanceList.setNsiServiceInstanceInfoList(nsiServiceInstanceInfoList);
+        nsiServiceInstanceList.setRecordNumber(nsiServiceInstanceInfoList.size());
+
+        nsiServiceInstanceList.getNsiServiceInstanceInfoList();
+        nsiServiceInstanceList.getRecordNumber();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NssiServiceInstanceInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NssiServiceInstanceInfoTest.java
new file mode 100644 (file)
index 0000000..0704023
--- /dev/null
@@ -0,0 +1,51 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class NssiServiceInstanceInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetNssiServiceInstanceInfo() throws Exception {
+
+        NssiServiceInstanceInfo nssiServiceInstanceInfo = new NssiServiceInstanceInfo();
+
+        nssiServiceInstanceInfo.setServiceType("eMBB");
+        nssiServiceInstanceInfo.setServiceInstanceName("eMBB_Slice_NSSI_5GCustomer");
+        nssiServiceInstanceInfo.setServiceInstanceId("5G-999");
+        nssiServiceInstanceInfo.setServiceInstanceOrder("1");
+        nssiServiceInstanceInfo.setOrchestrationStatus("activated");
+        nssiServiceInstanceInfo.setEnvironmentContext("cn");
+
+        nssiServiceInstanceInfo.getEnvironmentContext();
+        nssiServiceInstanceInfo.getOrchestrationStatus();
+        nssiServiceInstanceInfo.getServiceInstanceId();
+        nssiServiceInstanceInfo.getServiceInstanceName();
+        nssiServiceInstanceInfo.getServiceInstanceOrder();
+        nssiServiceInstanceInfo.getServiceType();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NssiServiceInstanceListTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/NssiServiceInstanceListTest.java
new file mode 100644 (file)
index 0000000..0b05327
--- /dev/null
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class NssiServiceInstanceListTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetNssiServiceInstanceList() throws Exception {
+
+        NssiServiceInstanceList nssiServiceInstanceList = new NssiServiceInstanceList();
+        List<NssiServiceInstanceInfo> nssiServiceInstanceInfoList = new ArrayList<>();
+
+        NssiServiceInstanceInfo nssiServiceInstanceInfo = new NssiServiceInstanceInfo();
+
+        nssiServiceInstanceInfo.setServiceType("eMBB");
+        nssiServiceInstanceInfo.setServiceInstanceName("eMBB_Slice_NSSI_5GCustomer");
+        nssiServiceInstanceInfo.setServiceInstanceId("5G-999");
+        nssiServiceInstanceInfo.setServiceInstanceOrder("1");
+        nssiServiceInstanceInfo.setOrchestrationStatus("activated");
+        nssiServiceInstanceInfo.setEnvironmentContext("cn");
+
+        nssiServiceInstanceInfoList.add(nssiServiceInstanceInfo);
+        nssiServiceInstanceList.setNssiServiceInstanceInfoList(nssiServiceInstanceInfoList);
+        nssiServiceInstanceList.setRecordNumber(nssiServiceInstanceInfoList.size());
+
+        nssiServiceInstanceList.getNssiServiceInstanceInfoList();
+        nssiServiceInstanceList.getRecordNumber();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/ServiceOperationProgressTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/ServiceOperationProgressTest.java
new file mode 100644 (file)
index 0000000..90588a1
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ServiceOperationProgressTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetServiceOperationProgress() throws Exception {
+
+        ServiceOperationProgress serviceOperationProgress = new ServiceOperationProgress();
+        serviceOperationProgress.setOperationProgress("88");
+        serviceOperationProgress.setOperationType("activate");
+
+        serviceOperationProgress.getOperationProgress();
+        serviceOperationProgress.getOperationType();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/ServiceOperationResultTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/ServiceOperationResultTest.java
new file mode 100644 (file)
index 0000000..da54b5e
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ServiceOperationResultTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetServiceOperationResult() throws Exception {
+
+        ServiceOperationResult serviceOperationResult = new ServiceOperationResult();
+        serviceOperationResult.setOperationId("110011");
+
+        serviceOperationResult.getOperationId();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessDetailsTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessDetailsTest.java
new file mode 100644 (file)
index 0000000..bebceda
--- /dev/null
@@ -0,0 +1,76 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.onap.usecaseui.server.bean.nsmf.task.BusinessDemandInfo;
+import org.onap.usecaseui.server.bean.nsmf.task.NstInfo;
+
+public class SlicingBusinessDetailsTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetSlicingBusinessDetails() throws Exception {
+
+        SlicingBusinessDetails slicingBusinessDetails = new SlicingBusinessDetails();
+
+        BusinessDemandInfo businessDemandInfo = new BusinessDemandInfo();
+        List<String> areaList = new ArrayList<>();
+        areaList.add("gansu");
+        areaList.add("linxia");
+        businessDemandInfo.setCoverageAreaTaList(areaList);
+        businessDemandInfo.setUseInterval("12");
+        businessDemandInfo.setUeMobilityLevel("stationary");
+        businessDemandInfo.setResourceSharingLevel("shared");
+        businessDemandInfo.setMaxNumberOfUEs("1000");
+        businessDemandInfo.setLatency("300");
+        businessDemandInfo.setExpDataRateUL("600");
+        businessDemandInfo.setExpDataRateDL("700");
+        businessDemandInfo.setAreaTrafficCapUL("600");
+        businessDemandInfo.setAreaTrafficCapDL("600");
+        businessDemandInfo.setActivityFactor("600");
+        businessDemandInfo.setServiceSnssai("1-10101");
+        businessDemandInfo.setServiceName("aer-001");
+        slicingBusinessDetails.setBusinessDemandInfo(businessDemandInfo);
+
+        NstInfo nstInfo = new NstInfo();
+        nstInfo.setNstId("srf0-223f-001r-iu34");
+        nstInfo.setNstName("nst001");
+        slicingBusinessDetails.setNstInfo(nstInfo);
+
+        NsiInfo nsiInfo = new NsiInfo();
+        nsiInfo.setNsiId("5G-888");
+        nsiInfo.setNsiName("eMBB_Slice_NSI_5GCustomer");
+        nsiInfo.setNsiOrchestrationStatus("activated");
+        nsiInfo.setNsiType("eMBB");
+        slicingBusinessDetails.setNsiInfo(nsiInfo);
+
+        slicingBusinessDetails.getBusinessDemandInfo();
+        slicingBusinessDetails.getNsiInfo();
+        slicingBusinessDetails.getNstInfo();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessInfoTest.java
new file mode 100644 (file)
index 0000000..2887eda
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class SlicingBusinessInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetSlicingBusinessInfo() throws Exception {
+
+        SlicingBusinessInfo slicingBusinessInfo = new SlicingBusinessInfo();
+        slicingBusinessInfo.setServiceType("embb");
+        slicingBusinessInfo.setServiceInstanceName("CSMFService");
+        slicingBusinessInfo.setServiceInstanceId("774dadbf-e628-4f4f-869a-67c307777af3");
+        slicingBusinessInfo.setOrchestrationStatus("Created");
+        slicingBusinessInfo.setLastOperationType("activate");
+        slicingBusinessInfo.setLastOperationProgress("90");
+        slicingBusinessInfo.setEnvironmentContext("an");
+
+        slicingBusinessInfo.getOrchestrationStatus();
+        slicingBusinessInfo.getEnvironmentContext();
+        slicingBusinessInfo.getLastOperationProgress();
+        slicingBusinessInfo.getLastOperationType();
+        slicingBusinessInfo.getServiceInstanceId();
+        slicingBusinessInfo.getServiceInstanceName();
+        slicingBusinessInfo.getServiceType();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessListTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessListTest.java
new file mode 100644 (file)
index 0000000..40a9f9e
--- /dev/null
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class SlicingBusinessListTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetSlicingBusinessList() throws Exception {
+
+        SlicingBusinessList slicingBusinessList = new SlicingBusinessList();
+        List<SlicingBusinessInfo> slicingBusinessInfoList = new ArrayList<>();
+
+        SlicingBusinessInfo slicingBusinessInfo = new SlicingBusinessInfo();
+        slicingBusinessInfo.setServiceType("embb");
+        slicingBusinessInfo.setServiceInstanceName("CSMFService");
+        slicingBusinessInfo.setServiceInstanceId("774dadbf-e628-4f4f-869a-67c307777af3");
+        slicingBusinessInfo.setOrchestrationStatus("Created");
+        slicingBusinessInfo.setLastOperationType("activate");
+        slicingBusinessInfo.setLastOperationProgress("90");
+        slicingBusinessInfoList.add(slicingBusinessInfo);
+
+        slicingBusinessList.setSlicingBusinessInfoList(slicingBusinessInfoList);
+        slicingBusinessList.setRecordNumber(slicingBusinessInfoList.size());
+
+        slicingBusinessList.getSlicingBusinessInfoList();
+        slicingBusinessList.getRecordNumber();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/SubscriberInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/resource/SubscriberInfoTest.java
new file mode 100644 (file)
index 0000000..020b33f
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.resource;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class SubscriberInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetSubscriberInfo() throws Exception {
+
+        SubscriberInfo subscriberInfo = new SubscriberInfo();
+        subscriberInfo.setGlobalSubscriberId("0090-tyu7-453e-45ty");
+        subscriberInfo.setServiceType("embb");
+
+        subscriberInfo.getGlobalSubscriberId();
+        subscriberInfo.getServiceType();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/BusinessDemandInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/BusinessDemandInfoTest.java
new file mode 100644 (file)
index 0000000..8f2a677
--- /dev/null
@@ -0,0 +1,71 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.task;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.onap.usecaseui.server.bean.nsmf.resource.HostedNsiInfo;
+
+public class BusinessDemandInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetBusinessDemandInfo() throws Exception {
+
+        BusinessDemandInfo businessDemandInfo = new BusinessDemandInfo();
+        List<String> areaList = new ArrayList<>();
+        areaList.add("gansu");
+        areaList.add("linxia");
+        businessDemandInfo.setCoverageAreaTaList(areaList);
+        businessDemandInfo.setUseInterval("12");
+        businessDemandInfo.setUeMobilityLevel("stationary");
+        businessDemandInfo.setResourceSharingLevel("shared");
+        businessDemandInfo.setMaxNumberOfUEs("1000");
+        businessDemandInfo.setLatency("300");
+        businessDemandInfo.setExpDataRateUL("600");
+        businessDemandInfo.setExpDataRateDL("700");
+        businessDemandInfo.setAreaTrafficCapUL("600");
+        businessDemandInfo.setAreaTrafficCapDL("600");
+        businessDemandInfo.setActivityFactor("600");
+        businessDemandInfo.setServiceSnssai("1-10101");
+        businessDemandInfo.setServiceName("aer-001");
+
+        businessDemandInfo.getActivityFactor();
+        businessDemandInfo.getAreaTrafficCapDL();
+        businessDemandInfo.getAreaTrafficCapUL();
+        businessDemandInfo.getCoverageAreaTaList();
+        businessDemandInfo.getExpDataRateDL();
+        businessDemandInfo.getExpDataRateUL();
+        businessDemandInfo.getLatency();
+        businessDemandInfo.getMaxNumberOfUEs();
+        businessDemandInfo.getResourceSharingLevel();
+        businessDemandInfo.getServiceName();
+        businessDemandInfo.getServiceSnssai();
+        businessDemandInfo.getUeMobilityLevel();
+        businessDemandInfo.getUseInterval();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/NsiAndSubNssiInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/NsiAndSubNssiInfoTest.java
new file mode 100644 (file)
index 0000000..7c11bcf
--- /dev/null
@@ -0,0 +1,98 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.task;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class NsiAndSubNssiInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetNsiAndSubNssiInfo() throws Exception {
+
+        NsiAndSubNssiInfo nsiAndSubNssiInfo = new NsiAndSubNssiInfo();
+        nsiAndSubNssiInfo.setSuggestNsiName("nsi01");
+        nsiAndSubNssiInfo.setSuggestNsiId("nsi01-0090-0987");
+
+        nsiAndSubNssiInfo.setTnSuggestNssiName("tn-nsi-01");
+        nsiAndSubNssiInfo.setTnSuggestNssiId("tn01-0987-iu87");
+        nsiAndSubNssiInfo.setTnLatency("60");
+        nsiAndSubNssiInfo.setTnBandwidth("1000");
+        nsiAndSubNssiInfo.setTnScriptName("scriptTest");
+
+        nsiAndSubNssiInfo.setCnUeMobilityLevel("stationary");
+        nsiAndSubNssiInfo.setCnServiceSnssai("1-10101");
+        nsiAndSubNssiInfo.setCnMaxNumberOfUes("1000");
+        nsiAndSubNssiInfo.setCnSuggestNssiName("cn-001");
+        nsiAndSubNssiInfo.setCnSuggestNssiId("0902-oi89-8923-iu34");
+        nsiAndSubNssiInfo.setCnResourceSharingLevel("shared");
+        nsiAndSubNssiInfo.setCnExpDataRateUl("300");
+        nsiAndSubNssiInfo.setCnExpDataRateDl("600");
+        nsiAndSubNssiInfo.setCnScriptName("scriptTest");
+
+        nsiAndSubNssiInfo.setAnSuggestNssiName("an-001");
+        nsiAndSubNssiInfo.setAnSuggestNssiId("0923-982-34fe-4553");
+        nsiAndSubNssiInfo.setAnLatency("300");
+        List<String> areaList = new ArrayList<>();
+        areaList.add("gansu");
+        areaList.add("linxia");
+        nsiAndSubNssiInfo.setAnCoverageAreaTaList(areaList);
+        nsiAndSubNssiInfo.setAn5qi("er4");
+        nsiAndSubNssiInfo.setAnScriptName("scriptTest");
+
+        nsiAndSubNssiInfo.getAn5qi();
+        nsiAndSubNssiInfo.getAnCoverageAreaTaList();
+        nsiAndSubNssiInfo.getAnLatency();
+        nsiAndSubNssiInfo.getAnSuggestNssiId();
+        nsiAndSubNssiInfo.getAnSuggestNssiName();
+        nsiAndSubNssiInfo.getAnScriptName();
+
+        nsiAndSubNssiInfo.getCnActivityFactor();
+        nsiAndSubNssiInfo.getCnAreaTrafficCapDl();
+        nsiAndSubNssiInfo.getCnAreaTrafficCapUl();
+        nsiAndSubNssiInfo.getCnExpDataRateDl();
+        nsiAndSubNssiInfo.getCnExpDataRateUl();
+        nsiAndSubNssiInfo.getCnLatency();
+        nsiAndSubNssiInfo.getCnMaxNumberOfUes();
+        nsiAndSubNssiInfo.getCnResourceSharingLevel();
+        nsiAndSubNssiInfo.getCnServiceSnssai();
+        nsiAndSubNssiInfo.getCnSuggestNssiId();
+        nsiAndSubNssiInfo.getCnSuggestNssiName();
+        nsiAndSubNssiInfo.getCnUeMobilityLevel();
+        nsiAndSubNssiInfo.getCnScriptName();
+
+        nsiAndSubNssiInfo.getTnBandwidth();
+        nsiAndSubNssiInfo.getTnLatency();
+        nsiAndSubNssiInfo.getTnSuggestNssiId();
+        nsiAndSubNssiInfo.getTnSuggestNssiName();
+        nsiAndSubNssiInfo.getTnScriptName();
+
+        nsiAndSubNssiInfo.getSuggestNsiId();
+        nsiAndSubNssiInfo.getSuggestNsiName();
+
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/NstInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/NstInfoTest.java
new file mode 100644 (file)
index 0000000..a9e20d8
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.task;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.onap.usecaseui.server.bean.nsmf.resource.NsiInfo;
+
+public class NstInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetNstInfo() throws Exception {
+
+        NstInfo nstInfo = new NstInfo();
+
+        nstInfo.setNstId("srf0-223f-001r-iu34");
+        nstInfo.setNstName("nst001");
+
+        nstInfo.getNstId();
+        nstInfo.getNstName();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskAuditInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskAuditInfoTest.java
new file mode 100644 (file)
index 0000000..4476657
--- /dev/null
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.task;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class SlicingTaskAuditInfoTest {
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetSlicingTaskAuditInfo() throws Exception {
+
+        SlicingTaskAuditInfo slicingTaskAuditInfo = new SlicingTaskAuditInfo();
+
+        slicingTaskAuditInfo.setProcessingStatus("Planning");
+        slicingTaskAuditInfo.setTaskName("SliceServiceTask");
+        slicingTaskAuditInfo.setCreateTime("2019-12-17T02:58:31.000+0000");
+        slicingTaskAuditInfo.setTaskId("06d1a5aa-63ae-4175-a377-627ca327456f");
+
+        BusinessDemandInfo businessDemandInfo = new BusinessDemandInfo();
+        slicingTaskAuditInfo.setBusinessDemandInfo(businessDemandInfo);
+
+        NstInfo nstInfo = new NstInfo();
+        slicingTaskAuditInfo.setNstInfo(nstInfo);
+
+        NsiAndSubNssiInfo nsiAndSubNssiInfo = new NsiAndSubNssiInfo();
+        slicingTaskAuditInfo.setNsiAndSubNssiInfo(nsiAndSubNssiInfo);
+
+        slicingTaskAuditInfo.getTaskId();
+        slicingTaskAuditInfo.getBusinessDemandInfo();
+        slicingTaskAuditInfo.getCreateTime();
+        slicingTaskAuditInfo.getNsiAndSubNssiInfo();
+        slicingTaskAuditInfo.getNstInfo();
+        slicingTaskAuditInfo.getProcessingStatus();
+        slicingTaskAuditInfo.getTaskName();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskCreationInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskCreationInfoTest.java
new file mode 100644 (file)
index 0000000..9039f3b
--- /dev/null
@@ -0,0 +1,56 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.task;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class SlicingTaskCreationInfoTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetSlicingTaskCreationInfo() throws Exception {
+
+        SlicingTaskCreationInfo slicingTaskCreationInfo = new SlicingTaskCreationInfo();
+
+
+        slicingTaskCreationInfo.setProcessingStatus("Planning");
+        slicingTaskCreationInfo.setTaskName("SliceServiceTask");
+        slicingTaskCreationInfo.setCreateTime("2019-12-17T02:58:31.000+0000");
+        slicingTaskCreationInfo.setTaskId("06d1a5aa-63ae-4175-a377-627ca327456f");
+
+        BusinessDemandInfo businessDemandInfo = new BusinessDemandInfo();
+        slicingTaskCreationInfo.setBusinessDemandInfo(businessDemandInfo);
+
+        NstInfo nstInfo = new NstInfo();
+        slicingTaskCreationInfo.setNstInfo(nstInfo);
+
+        slicingTaskCreationInfo.getTaskId();
+        slicingTaskCreationInfo.getBusinessDemandInfo();
+        slicingTaskCreationInfo.getCreateTime();
+        slicingTaskCreationInfo.getNstInfo();
+        slicingTaskCreationInfo.getProcessingStatus();
+        slicingTaskCreationInfo.getTaskName();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskCreationProgressTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskCreationProgressTest.java
new file mode 100644 (file)
index 0000000..ee1e4f4
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.task;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class SlicingTaskCreationProgressTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetSlicingTaskCreationProgress() throws Exception {
+
+        SlicingTaskCreationProgress slicingTaskCreationProgress = new SlicingTaskCreationProgress();
+        slicingTaskCreationProgress.setCnProgress("66");
+        slicingTaskCreationProgress.setTnProgress("66");
+        slicingTaskCreationProgress.setAnProgress("66");
+        slicingTaskCreationProgress.setCnStatus("error");
+        slicingTaskCreationProgress.setTnStatus("error");
+        slicingTaskCreationProgress.setAnStatus("error");
+
+        slicingTaskCreationProgress.getAnProgress();
+        slicingTaskCreationProgress.getCnProgress();
+        slicingTaskCreationProgress.getTnProgress();
+        slicingTaskCreationProgress.getAnStatus();
+        slicingTaskCreationProgress.getCnStatus();
+        slicingTaskCreationProgress.getTnStatus();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskInfoTest.java
new file mode 100644 (file)
index 0000000..7c3231e
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.task;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class SlicingTaskInfoTest {
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetSlicingTaskInfo() throws Exception {
+
+        SlicingTaskInfo slicingTaskInfo = new SlicingTaskInfo();
+
+        slicingTaskInfo.setTaskId("03af656e-7602-47dd-97ee-0c7ca5c39cab");
+        slicingTaskInfo.setName("SliceServiceTask");
+        slicingTaskInfo.setStatus("Planning");
+        slicingTaskInfo.setServiceType("embb");
+        slicingTaskInfo.setServiceSnssai("01-010101");
+        slicingTaskInfo.setCreateTime("2019-12-19T10:13:26.000+0000");
+
+        slicingTaskInfo.getStatus();
+        slicingTaskInfo.getCreateTime();
+        slicingTaskInfo.getName();
+        slicingTaskInfo.getServiceSnssai();
+        slicingTaskInfo.getServiceType();
+        slicingTaskInfo.getTaskId();
+    }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskListTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskListTest.java
new file mode 100644 (file)
index 0000000..6705674
--- /dev/null
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2019 CMCC, 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.nsmf.task;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class SlicingTaskListTest {
+
+    @Before
+    public void before() throws Exception {
+    }
+
+    @After
+    public void after() throws Exception {
+    }
+
+    @Test
+    public void testSetAndGetSlicingTaskList() throws Exception {
+
+        SlicingTaskList slicingTaskList = new SlicingTaskList();
+        List<SlicingTaskInfo> slicingTaskInfoList = new ArrayList<>();
+
+        SlicingTaskInfo slicingTaskInfo = new SlicingTaskInfo();
+        slicingTaskInfo.setTaskId("03af656e-7602-47dd-97ee-0c7ca5c39cab");
+        slicingTaskInfo.setName("SliceServiceTask");
+        slicingTaskInfo.setStatus("Planning");
+        slicingTaskInfo.setServiceType("embb");
+        slicingTaskInfo.setServiceSnssai("01-010101");
+        slicingTaskInfo.setCreateTime("2019-12-19T10:13:26.000+0000");
+        slicingTaskInfoList.add(slicingTaskInfo);
+
+        slicingTaskList.setSlicingTaskInfoList(slicingTaskInfoList);
+        slicingTaskList.setRecordNumber(slicingTaskInfoList.size());
+
+        slicingTaskList.getRecordNumber();
+        slicingTaskList.getSlicingTaskInfoList();
+    }
+}