aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhekeguang <hekeguang@chinamobile.com>2021-05-21 11:22:40 +0800
committerhekeguang <hekeguang@chinamobile.com>2021-05-21 11:23:00 +0800
commitc7c052a039dc045452361b44208bd66a877104ce (patch)
tree75cc6aacfe9af4b1918022a975969fd54bfc43d0
parent45cbb32c4424891d2fabdcc026e1208a2af719b7 (diff)
Add test code for uui-server.
Issue-ID: USECASEUI-584 Change-Id: I46161ff5eb2898954f95fe2010042d5f8c8aa05a Signed-off-by: hekeguang <hekeguang@chinamobile.com>
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/BusinessDemandInfoTest.java19
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/EndPointInfoTest.java41
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/NsiAndSubNssiInfoTest.java98
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskCreationProgressTest.java6
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceProfilesTest.java18
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/ConnectionLinkListTest.java44
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/ConnectionLinkTest.java53
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/EndPointInfoListTest.java43
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/NetworkInfoTest.java59
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/NetworkPolicyTest.java43
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/RelatedToPropertyTest.java41
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/RelationshipTest.java48
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/SliceProfileInfoTest.java44
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/SliceProfileListTest.java39
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/ConnectionListVoTest.java45
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/ConnectionVoTest.java42
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/EndPointInfoListVoTest.java43
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/PropertiesVoTest.java46
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/TotalTrafficTest.java38
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/AnSliceTaskInfoTest.java66
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/CnSliceTaskInfoTest.java66
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/NstInfoTest.java42
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/TnBHSliceTaskInfoTest.java68
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/TnFHSliceTaskInfoTest.java60
-rw-r--r--server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/TnMHSliceTaskInfoTest.java60
25 files changed, 1171 insertions, 1 deletions
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
index 8f2a6773..49ca4005 100644
--- 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
@@ -52,6 +52,15 @@ public class BusinessDemandInfoTest {
businessDemandInfo.setActivityFactor("600");
businessDemandInfo.setServiceSnssai("1-10101");
businessDemandInfo.setServiceName("aer-001");
+ businessDemandInfo.setServiceProfileAvailability("001");
+ businessDemandInfo.setServiceProfilePLMNIdList("001");
+ businessDemandInfo.setServiceProfileReliability("001");
+ businessDemandInfo.setServiceProfileDLThptPerSlice("001");
+ businessDemandInfo.setServiceProfileDLThptPerUE("001");
+ businessDemandInfo.setServiceProfileULThptPerSlice("001");
+ businessDemandInfo.setServiceProfileULThptPerUE("001");
+ businessDemandInfo.setServiceProfileMaxPktSize("001");
+ businessDemandInfo.setServiceProfileSurvivalTime("001");
businessDemandInfo.getActivityFactor();
businessDemandInfo.getAreaTrafficCapDL();
@@ -66,6 +75,14 @@ public class BusinessDemandInfoTest {
businessDemandInfo.getServiceSnssai();
businessDemandInfo.getUeMobilityLevel();
businessDemandInfo.getUseInterval();
-
+ businessDemandInfo.getServiceProfileAvailability();
+ businessDemandInfo.getServiceProfilePLMNIdList();
+ businessDemandInfo.getServiceProfileReliability();
+ businessDemandInfo.getServiceProfileDLThptPerSlice();
+ businessDemandInfo.getServiceProfileDLThptPerUE();
+ businessDemandInfo.getServiceProfileULThptPerSlice();
+ businessDemandInfo.getServiceProfileULThptPerUE();
+ businessDemandInfo.getServiceProfileMaxPktSize();
+ businessDemandInfo.getServiceProfileSurvivalTime();
}
}
diff --git a/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/EndPointInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/EndPointInfoTest.java
new file mode 100644
index 00000000..6073cacf
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/bean/nsmf/task/EndPointInfoTest.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2021 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 EndPointInfoTest {
+
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetBusinessDemandInfo() throws Exception {
+ EndPointInfo endPointInfo = new EndPointInfo();
+ endPointInfo.setCNEndPointId("0000-1111");
+ endPointInfo.setANEndPointId("0000-1111");
+
+ endPointInfo.getANEndPointId();
+ endPointInfo.getCNEndPointId();
+ }
+}
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
index e561c311..0d4d290d 100644
--- 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
@@ -64,6 +64,55 @@ public class NsiAndSubNssiInfoTest {
nsiAndSubNssiInfo.setAn5qi("er4");
nsiAndSubNssiInfo.setAnScriptName("scriptTest");
+ nsiAndSubNssiInfo.setAnEnableNSSISelection(true);
+ nsiAndSubNssiInfo.setSliceProfile_AN_sNSSAI("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_pLMNIdList("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_maxNumberofUEs("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_maxNumberofPDUSession("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_expDataRateDL("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_expDataRateUL("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_areaTrafficCapDL("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_areaTrafficCapUL("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_overallUserDensity("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_activityFactor("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_uEMobilityLevel("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_resourceSharingLevel("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_sST("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_cSAvailabilityTarget("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_cSReliabilityMeanTime("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_expDataRate("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_msgSizeByte("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_transferIntervalTarget("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_survivalTime("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_ipAddress("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_logicInterfaceId("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_AN_nextHopInfo("scriptTest");
+
+ nsiAndSubNssiInfo.setSliceProfile_TN_BH_jitte("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_TN_BH_pLMNIdList("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_TN_BH_sNSSAI("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_TN_BH_sST("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_TN_BH_resourceSharingLevel("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_TN_BH_connectionLinkId("scriptTest");
+ nsiAndSubNssiInfo.setTnEnableNSSISelection(true);
+
+
+ nsiAndSubNssiInfo.setCnEnableNSSISelection(true);
+ nsiAndSubNssiInfo.setSliceProfile_CN_pLMNIdList("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_CN_maxNumberofPDUSession("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_CN_overallUserDensity("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_CN_coverageAreaTAList("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_CN_sST("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_CN_cSAvailabilityTarget("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_CN_cSReliabilityMeanTime("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_CN_expDataRate("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_CN_msgSizeByte("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_CN_logicInterfaceId("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_CN_transferIntervalTarget("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_CN_survivalTime("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_CN_ipAddress("scriptTest");
+ nsiAndSubNssiInfo.setSliceProfile_CN_nextHopInfo("scriptTest");
+
nsiAndSubNssiInfo.getAn5qi();
nsiAndSubNssiInfo.getAnCoverageAreaTaList();
nsiAndSubNssiInfo.getAnLatency();
@@ -94,5 +143,54 @@ public class NsiAndSubNssiInfoTest {
nsiAndSubNssiInfo.getSuggestNsiId();
nsiAndSubNssiInfo.getSuggestNsiName();
+ nsiAndSubNssiInfo.getAnEnableNSSISelection();
+ nsiAndSubNssiInfo.getSliceProfile_AN_sNSSAI();
+ nsiAndSubNssiInfo.getSliceProfile_AN_pLMNIdList();
+ nsiAndSubNssiInfo.getSliceProfile_AN_maxNumberofUEs();
+ nsiAndSubNssiInfo.getSliceProfile_AN_maxNumberofPDUSession();
+ nsiAndSubNssiInfo.getSliceProfile_AN_expDataRateDL();
+ nsiAndSubNssiInfo.getSliceProfile_AN_expDataRateUL();
+ nsiAndSubNssiInfo.getSliceProfile_AN_areaTrafficCapDL();
+ nsiAndSubNssiInfo.getSliceProfile_AN_areaTrafficCapUL();
+ nsiAndSubNssiInfo.getSliceProfile_AN_overallUserDensity();
+ nsiAndSubNssiInfo.getSliceProfile_AN_activityFactor();
+ nsiAndSubNssiInfo.getSliceProfile_AN_uEMobilityLevel();
+ nsiAndSubNssiInfo.getSliceProfile_AN_resourceSharingLevel();
+ nsiAndSubNssiInfo.getSliceProfile_AN_sST();
+ nsiAndSubNssiInfo.getSliceProfile_AN_cSAvailabilityTarget();
+ nsiAndSubNssiInfo.getSliceProfile_AN_cSReliabilityMeanTime();
+ nsiAndSubNssiInfo.getSliceProfile_AN_expDataRate();
+ nsiAndSubNssiInfo.getSliceProfile_AN_msgSizeByte();
+ nsiAndSubNssiInfo.getSliceProfile_AN_transferIntervalTarget();
+ nsiAndSubNssiInfo.getSliceProfile_AN_survivalTime();
+ nsiAndSubNssiInfo.getSliceProfile_AN_ipAddress();
+ nsiAndSubNssiInfo.getSliceProfile_AN_logicInterfaceId();
+ nsiAndSubNssiInfo.getSliceProfile_AN_nextHopInfo();
+
+ nsiAndSubNssiInfo.getSliceProfile_TN_BH_jitte();
+ nsiAndSubNssiInfo.getSliceProfile_TN_BH_pLMNIdList();
+ nsiAndSubNssiInfo.getSliceProfile_TN_BH_sNSSAI();
+ nsiAndSubNssiInfo.getSliceProfile_TN_BH_sST();
+ nsiAndSubNssiInfo.getSliceProfile_TN_BH_resourceSharingLevel();
+ nsiAndSubNssiInfo.getSliceProfile_TN_BH_connectionLinkId();
+ nsiAndSubNssiInfo.getTnEnableNSSISelection();
+
+
+ nsiAndSubNssiInfo.getCnEnableNSSISelection();
+ nsiAndSubNssiInfo.getSliceProfile_CN_pLMNIdList();
+ nsiAndSubNssiInfo.getSliceProfile_CN_maxNumberofPDUSession();
+ nsiAndSubNssiInfo.getSliceProfile_CN_overallUserDensity();
+ nsiAndSubNssiInfo.getSliceProfile_CN_coverageAreaTAList();
+ nsiAndSubNssiInfo.getSliceProfile_CN_sST();
+ nsiAndSubNssiInfo.getSliceProfile_CN_cSAvailabilityTarget();
+ nsiAndSubNssiInfo.getSliceProfile_CN_cSReliabilityMeanTime();
+ nsiAndSubNssiInfo.getSliceProfile_CN_expDataRate();
+ nsiAndSubNssiInfo.getSliceProfile_CN_msgSizeByte();
+ nsiAndSubNssiInfo.getSliceProfile_CN_logicInterfaceId();
+ nsiAndSubNssiInfo.getSliceProfile_CN_transferIntervalTarget();
+ nsiAndSubNssiInfo.getSliceProfile_CN_survivalTime();
+ nsiAndSubNssiInfo.getSliceProfile_CN_ipAddress();
+ nsiAndSubNssiInfo.getSliceProfile_CN_nextHopInfo();
+
}
}
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
index ee1e4f4d..8514ad29 100644
--- 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
@@ -39,6 +39,9 @@ public class SlicingTaskCreationProgressTest {
slicingTaskCreationProgress.setCnStatus("error");
slicingTaskCreationProgress.setTnStatus("error");
slicingTaskCreationProgress.setAnStatus("error");
+ slicingTaskCreationProgress.setAnStatusDescription("error");
+ slicingTaskCreationProgress.setTnStatusDescription("error");
+ slicingTaskCreationProgress.setCnStatusDescription("error");
slicingTaskCreationProgress.getAnProgress();
slicingTaskCreationProgress.getCnProgress();
@@ -46,5 +49,8 @@ public class SlicingTaskCreationProgressTest {
slicingTaskCreationProgress.getAnStatus();
slicingTaskCreationProgress.getCnStatus();
slicingTaskCreationProgress.getTnStatus();
+ slicingTaskCreationProgress.getAnStatusDescription();
+ slicingTaskCreationProgress.getTnStatusDescription();
+ slicingTaskCreationProgress.getCnStatusDescription();
}
}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceProfilesTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceProfilesTest.java
index f407c828..030ed906 100644
--- a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceProfilesTest.java
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/AAIServiceProfilesTest.java
@@ -43,6 +43,15 @@ public class AAIServiceProfilesTest {
aaiServiceProfiles.setResourceVersion("ver123");
aaiServiceProfiles.setSurvivalTime(200);
aaiServiceProfiles.setUeMobilityLevel("mobile");
+ aaiServiceProfiles.setAvailability(6);
+ aaiServiceProfiles.setDLThptPerSlice(200);
+ aaiServiceProfiles.setDLThptPerUE(300);
+ aaiServiceProfiles.setULThptPerSlice(200);
+ aaiServiceProfiles.setULThptPerUE(100);
+ aaiServiceProfiles.setMaxPktSize(200);
+ aaiServiceProfiles.setMaxNumberofConns(200);
+ aaiServiceProfiles.setTermDensity(300);
+
aaiServiceProfiles.getActivityFactor();
aaiServiceProfiles.getCoverageAreaTAList();
aaiServiceProfiles.getJitter();
@@ -54,5 +63,14 @@ public class AAIServiceProfilesTest {
aaiServiceProfiles.getResourceVersion();
aaiServiceProfiles.getSurvivalTime();
aaiServiceProfiles.getUeMobilityLevel();
+
+ aaiServiceProfiles.getAvailability();
+ aaiServiceProfiles.getDLThptPerSlice();
+ aaiServiceProfiles.getDLThptPerUE();
+ aaiServiceProfiles.getULThptPerSlice();
+ aaiServiceProfiles.getULThptPerUE();
+ aaiServiceProfiles.getMaxPktSize();
+ aaiServiceProfiles.getMaxNumberofConns();
+ aaiServiceProfiles.getTermDensity();
}
}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/ConnectionLinkListTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/ConnectionLinkListTest.java
new file mode 100644
index 00000000..b4516d36
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/ConnectionLinkListTest.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.aai.bean.connection;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ConnectionLinkListTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetConnectionLinkList() throws Exception {
+ ConnectionLinkList connectionLinkList = new ConnectionLinkList();
+ ConnectionLink connectionLink = new ConnectionLink();
+
+ List<ConnectionLink> logicalLink = new ArrayList<>();
+ logicalLink.add(connectionLink);
+ connectionLinkList.setLogicalLink(logicalLink);
+
+ connectionLinkList.getLogicalLink();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/ConnectionLinkTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/ConnectionLinkTest.java
new file mode 100644
index 00000000..da6228d2
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/ConnectionLinkTest.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.aai.bean.connection;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ConnectionLinkTest {
+
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetConnectionLink() throws Exception {
+ ConnectionLink connectionLink = new ConnectionLink();
+ connectionLink.setInMaint("main");
+ connectionLink.setLinkId("000-111");
+ connectionLink.setLinkName("name1");
+ connectionLink.setLinkName2("name2");
+ connectionLink.setLinkType("type1");
+ connectionLink.setRelationshipList(new RelationshipList());
+ connectionLink.setResourceVersion("001");
+ connectionLink.setServiceFunction("fuc001");
+
+ connectionLink.getLinkId();
+ connectionLink.getInMaint();
+ connectionLink.getLinkName();
+ connectionLink.getLinkName2();
+ connectionLink.getLinkType();
+ connectionLink.getRelationshipList();
+ connectionLink.getResourceVersion();
+ connectionLink.getServiceFunction();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/EndPointInfoListTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/EndPointInfoListTest.java
new file mode 100644
index 00000000..d6af8b20
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/EndPointInfoListTest.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.aai.bean.connection;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class EndPointInfoListTest {
+
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetEndPointInfoList() throws Exception {
+ EndPointInfoList endPointInfoList = new EndPointInfoList();
+ endPointInfoList.setIpAddress("172.8.9.1");
+ endPointInfoList.setLogicId("0092-7834-8745-8793");
+ endPointInfoList.setNextHop("nexthop");
+
+ endPointInfoList.getIpAddress();
+ endPointInfoList.getLogicId();
+ endPointInfoList.getNextHop();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/NetworkInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/NetworkInfoTest.java
new file mode 100644
index 00000000..1eeb3c37
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/NetworkInfoTest.java
@@ -0,0 +1,59 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.aai.bean.connection;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class NetworkInfoTest {
+
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetNetworkInfo() throws Exception {
+ NetworkInfo networkInfo = new NetworkInfo();
+ networkInfo.setEnvironmentContext("context1");
+ networkInfo.setModelInvariantId("0001");
+ networkInfo.setModelVersionId("0001");
+ networkInfo.setOrchestrationStatus("activate");
+ networkInfo.setRelationshipList(new RelationshipList());
+ networkInfo.setResourceVersion("0001");
+ networkInfo.setServiceInstanceId("0001");
+ networkInfo.setServiceInstanceName("name1");
+ networkInfo.setServiceRole("role1");
+ networkInfo.setServiceType("type1");
+ networkInfo.setWorkloadContext("context1");
+
+ networkInfo.getEnvironmentContext();
+ networkInfo.getModelInvariantId();
+ networkInfo.getModelVersionId();
+ networkInfo.getOrchestrationStatus();
+ networkInfo.getRelationshipList();
+ networkInfo.getResourceVersion();
+ networkInfo.getServiceInstanceId();
+ networkInfo.getServiceInstanceName();
+ networkInfo.getServiceRole();
+ networkInfo.getServiceType();
+ networkInfo.getWorkloadContext();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/NetworkPolicyTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/NetworkPolicyTest.java
new file mode 100644
index 00000000..a32c2be9
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/NetworkPolicyTest.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.aai.bean.connection;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class NetworkPolicyTest {
+
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetNetworkPolicy() throws Exception {
+ NetworkPolicy networkPolicy = new NetworkPolicy();
+ networkPolicy.setJitter("jitter");
+ networkPolicy.setLatency("20");
+ networkPolicy.setMaxBandwidth("20");
+
+ networkPolicy.getJitter();
+ networkPolicy.getLatency();
+ networkPolicy.getMaxBandwidth();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/RelatedToPropertyTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/RelatedToPropertyTest.java
new file mode 100644
index 00000000..0298d302
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/RelatedToPropertyTest.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.aai.bean.connection;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class RelatedToPropertyTest {
+
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetNetworkPolicy() throws Exception {
+ RelatedToProperty relatedToProperty = new RelatedToProperty();
+ relatedToProperty.setPropertyKey("key");
+ relatedToProperty.setPropertyValue("value");
+
+ relatedToProperty.getPropertyKey();
+ relatedToProperty.getPropertyValue();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/RelationshipTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/RelationshipTest.java
new file mode 100644
index 00000000..e4bd36ca
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/RelationshipTest.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.aai.bean.connection;
+
+import java.util.ArrayList;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class RelationshipTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetRelationship() throws Exception {
+ Relationship relationship = new Relationship();
+ relationship.setRelatedLink("link1");
+ relationship.setRelatedTo("relationTo");
+ relationship.setRelatedToProperties(new ArrayList<>());
+ relationship.setRelationshipDataList(new ArrayList<>());
+ relationship.setRelationshipLabel("label");
+
+ relationship.getRelatedLink();
+ relationship.getRelatedTo();
+ relationship.getRelatedToProperties();
+ relationship.getRelationshipDataList();
+ relationship.getRelationshipLabel();
+
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/SliceProfileInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/SliceProfileInfoTest.java
new file mode 100644
index 00000000..f31ec1c5
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/SliceProfileInfoTest.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.aai.bean.connection;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class SliceProfileInfoTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetSliceProfileInfo() throws Exception {
+ SliceProfileInfo sliceProfileInfo = new SliceProfileInfo();
+ sliceProfileInfo.setJitter("jitter");
+ sliceProfileInfo.setLatency("20");
+ sliceProfileInfo.setMaxBandwidth("20");
+ sliceProfileInfo.setProfileId("0098-0092");
+
+ sliceProfileInfo.getJitter();
+ sliceProfileInfo.getLatency();
+ sliceProfileInfo.getMaxBandwidth();
+ sliceProfileInfo.getProfileId();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/SliceProfileListTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/SliceProfileListTest.java
new file mode 100644
index 00000000..94557c78
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connection/SliceProfileListTest.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.aai.bean.connection;
+
+import java.util.ArrayList;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class SliceProfileListTest {
+
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetSliceProfileList() throws Exception {
+ SliceProfileList sliceProfileList = new SliceProfileList();
+ sliceProfileList.setSliceProfileInfoList(new ArrayList<>());
+ sliceProfileList.getSliceProfileInfoList();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/ConnectionListVoTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/ConnectionListVoTest.java
new file mode 100644
index 00000000..3ec08085
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/ConnectionListVoTest.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.aai.bean.connectionvo;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ConnectionListVoTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetConnectionListVo() throws Exception {
+ ConnectionListVo connectionListVo = new ConnectionListVo();
+ connectionListVo.setAnInfo(new EndPointInfoListVo());
+ connectionListVo.setCnInfo(new EndPointInfoListVo());
+ connectionListVo.setLinkId("009-009");
+ connectionListVo.setProperties(new PropertiesVo());
+
+ connectionListVo.getAnInfo();
+ connectionListVo.getCnInfo();
+ connectionListVo.getLinkId();
+ connectionListVo.getProperties();
+ }
+
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/ConnectionVoTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/ConnectionVoTest.java
new file mode 100644
index 00000000..7ee01d7f
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/ConnectionVoTest.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.aai.bean.connectionvo;
+
+import java.util.ArrayList;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ConnectionVoTest {
+
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetConnectionVo() throws Exception {
+ ConnectionVo connectionVo =new ConnectionVo();
+ connectionVo.setConnection_links_list(new ArrayList<>());
+ connectionVo.setRecord_number(200);
+
+ connectionVo.getConnection_links_list();
+ connectionVo.getRecord_number();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/EndPointInfoListVoTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/EndPointInfoListVoTest.java
new file mode 100644
index 00000000..6192762d
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/EndPointInfoListVoTest.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.aai.bean.connectionvo;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class EndPointInfoListVoTest {
+
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetEndPointInfoListVo() throws Exception {
+ EndPointInfoListVo endPointInfoListVo = new EndPointInfoListVo();
+ endPointInfoListVo.setIpAddress("172.36.32.32");
+ endPointInfoListVo.setLogicId("0099-2345-5655-4567");
+ endPointInfoListVo.setNextHop("hop1");
+
+ endPointInfoListVo.getIpAddress();
+ endPointInfoListVo.getLogicId();
+ endPointInfoListVo.getNextHop();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/PropertiesVoTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/PropertiesVoTest.java
new file mode 100644
index 00000000..37dcb77e
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/aai/bean/connectionvo/PropertiesVoTest.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.aai.bean.connectionvo;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class PropertiesVoTest {
+
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetPropertiesVo() throws Exception {
+
+ PropertiesVo propertiesVo = new PropertiesVo();
+ propertiesVo.setJitter("jitter1");
+ propertiesVo.setLatency("200");
+ propertiesVo.setMaxBandwidth("200");
+ propertiesVo.setResourceSharingLevel("level1");
+
+ propertiesVo.getJitter();
+ propertiesVo.getLatency();
+ propertiesVo.getMaxBandwidth();
+ propertiesVo.getResourceSharingLevel();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/TotalTrafficTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/TotalTrafficTest.java
new file mode 100644
index 00000000..58bc7f05
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/kpi/bean/TotalTrafficTest.java
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.kpi.bean;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class TotalTrafficTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetTotalTraffic() throws Exception {
+ TotalTraffic totalTraffic = new TotalTraffic();
+ totalTraffic.setTotalTraffic(200);
+
+ totalTraffic.getTotalTraffic();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/AnSliceTaskInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/AnSliceTaskInfoTest.java
new file mode 100644
index 00000000..09a643a6
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/AnSliceTaskInfoTest.java
@@ -0,0 +1,66 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.so.bean;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class AnSliceTaskInfoTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetAnSliceTaskInfo() throws Exception {
+ AnSliceTaskInfo anSliceTaskInfo = new AnSliceTaskInfo();
+ anSliceTaskInfo.setEndPointId("0003");
+ anSliceTaskInfo.setEnableNSSISelection(true);
+ anSliceTaskInfo.setInterfaceId("0092");
+ anSliceTaskInfo.setIpAdrress("172.86.36.2");
+ anSliceTaskInfo.setNetworkType("type1");
+ anSliceTaskInfo.setNextHopInfo("info1");
+ anSliceTaskInfo.setNsstinfo(new NstInfo());
+ anSliceTaskInfo.setProgress("60");
+ anSliceTaskInfo.setSliceInstanceId("0002-9865");
+ anSliceTaskInfo.setVendor("vendor");
+ anSliceTaskInfo.setNetworkType("type1");
+ anSliceTaskInfo.setSubnetType("type2");
+ anSliceTaskInfo.setScriptName("sci");
+ anSliceTaskInfo.setEndPointId("0003-5689");
+ anSliceTaskInfo.setNsstinfo(new NstInfo());
+
+ anSliceTaskInfo.getEndPointId();
+ anSliceTaskInfo.getEnableNSSISelection();
+ anSliceTaskInfo.getInterfaceId();
+ anSliceTaskInfo.getIpAdrress();
+ anSliceTaskInfo.getNetworkType();
+ anSliceTaskInfo.getNextHopInfo();
+ anSliceTaskInfo.getNsstinfo();
+ anSliceTaskInfo.getProgress();
+ anSliceTaskInfo.getSliceInstanceId();
+ anSliceTaskInfo.getVendor();
+ anSliceTaskInfo.getNetworkType();
+ anSliceTaskInfo.getSubnetType();
+ anSliceTaskInfo.getScriptName();
+ anSliceTaskInfo.getEndPointId();
+ anSliceTaskInfo.getNsstinfo();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/CnSliceTaskInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/CnSliceTaskInfoTest.java
new file mode 100644
index 00000000..b509f359
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/CnSliceTaskInfoTest.java
@@ -0,0 +1,66 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.so.bean;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class CnSliceTaskInfoTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetCnSliceTaskInfoTest() throws Exception {
+ CnSliceTaskInfo cnSliceTaskInfo = new CnSliceTaskInfo();
+ cnSliceTaskInfo.setEndPointId("0003");
+ cnSliceTaskInfo.setEnableNSSISelection(true);
+ cnSliceTaskInfo.setInterfaceId("0092");
+ cnSliceTaskInfo.setIpAdrress("172.86.36.2");
+ cnSliceTaskInfo.setNetworkType("type1");
+ cnSliceTaskInfo.setNextHopInfo("info1");
+ cnSliceTaskInfo.setNsstinfo(new NstInfo());
+ cnSliceTaskInfo.setProgress("60");
+ cnSliceTaskInfo.setSliceInstanceId("0002-9865");
+ cnSliceTaskInfo.setVendor("vendor");
+ cnSliceTaskInfo.setNetworkType("type1");
+ cnSliceTaskInfo.setSubnetType("type2");
+ cnSliceTaskInfo.setScriptName("sci");
+ cnSliceTaskInfo.setEndPointId("0003-5689");
+ cnSliceTaskInfo.setNsstinfo(new NstInfo());
+
+ cnSliceTaskInfo.getEndPointId();
+ cnSliceTaskInfo.getEnableNSSISelection();
+ cnSliceTaskInfo.getInterfaceId();
+ cnSliceTaskInfo.getIpAdrress();
+ cnSliceTaskInfo.getNetworkType();
+ cnSliceTaskInfo.getNextHopInfo();
+ cnSliceTaskInfo.getNsstinfo();
+ cnSliceTaskInfo.getProgress();
+ cnSliceTaskInfo.getSliceInstanceId();
+ cnSliceTaskInfo.getVendor();
+ cnSliceTaskInfo.getNetworkType();
+ cnSliceTaskInfo.getSubnetType();
+ cnSliceTaskInfo.getScriptName();
+ cnSliceTaskInfo.getEndPointId();
+ cnSliceTaskInfo.getNsstinfo();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/NstInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/NstInfoTest.java
new file mode 100644
index 00000000..695340e5
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/NstInfoTest.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.so.bean;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class NstInfoTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testNstInfo() throws Exception {
+ NstInfo nstInfo = new NstInfo();
+ nstInfo.setInvariantUUID("0090-0990");
+ nstInfo.setName("name1");
+ nstInfo.setUuid("9090-8993-9994");
+
+ nstInfo.getInvariantUUID();
+ nstInfo.getName();
+ nstInfo.getUuid();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/TnBHSliceTaskInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/TnBHSliceTaskInfoTest.java
new file mode 100644
index 00000000..a86ce05b
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/TnBHSliceTaskInfoTest.java
@@ -0,0 +1,68 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.so.bean;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class TnBHSliceTaskInfoTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetTnBHSliceTaskInfo() throws Exception {
+ TnBHSliceTaskInfo tnBHSliceTaskInfo = new TnBHSliceTaskInfo();
+ tnBHSliceTaskInfo.setSuggestNssiName("name");
+ tnBHSliceTaskInfo.setProgress("20");
+ tnBHSliceTaskInfo.setStatus("failed");
+ tnBHSliceTaskInfo.setStatusDescription("failed");
+ tnBHSliceTaskInfo.setSliceProfile(new SliceProfile());
+ tnBHSliceTaskInfo.setSliceInstanceId("0003-5898-8522");
+ tnBHSliceTaskInfo.setScriptName("scipt");
+ tnBHSliceTaskInfo.setVendor("vendor");
+ tnBHSliceTaskInfo.setNetworkType("type1");
+ tnBHSliceTaskInfo.setSubnetType("type1");
+ tnBHSliceTaskInfo.setEndPointId("0003-5898-8522");
+ tnBHSliceTaskInfo.setEnableNSSISelection(true);
+ tnBHSliceTaskInfo.setLantency("20");
+ tnBHSliceTaskInfo.setMaxBandWidth("20");
+ tnBHSliceTaskInfo.setLinkType("type2");
+ tnBHSliceTaskInfo.setNsstinfo(new NstInfo());
+
+ tnBHSliceTaskInfo.getSuggestNssiName();
+ tnBHSliceTaskInfo.getProgress();
+ tnBHSliceTaskInfo.getStatus();
+ tnBHSliceTaskInfo.getStatusDescription();
+ tnBHSliceTaskInfo.getSliceProfile();
+ tnBHSliceTaskInfo.getSliceInstanceId();
+ tnBHSliceTaskInfo.getScriptName();
+ tnBHSliceTaskInfo.getVendor();
+ tnBHSliceTaskInfo.getNetworkType();
+ tnBHSliceTaskInfo.getSubnetType();
+ tnBHSliceTaskInfo.getEndPointId();
+ tnBHSliceTaskInfo.getEnableNSSISelection();
+ tnBHSliceTaskInfo.getLantency();
+ tnBHSliceTaskInfo.getMaxBandWidth();
+ tnBHSliceTaskInfo.getLinkType();
+ tnBHSliceTaskInfo.getNsstinfo();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/TnFHSliceTaskInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/TnFHSliceTaskInfoTest.java
new file mode 100644
index 00000000..b4f74269
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/TnFHSliceTaskInfoTest.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.so.bean;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class TnFHSliceTaskInfoTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetTnFHSliceTaskInfo() throws Exception {
+ TnFHSliceTaskInfo tnFHSliceTaskInfo = new TnFHSliceTaskInfo();
+ tnFHSliceTaskInfo.setSuggestNssiName("name");
+ tnFHSliceTaskInfo.setProgress("20");
+ tnFHSliceTaskInfo.setStatus("failed");
+ tnFHSliceTaskInfo.setStatusDescription("failed");
+ tnFHSliceTaskInfo.setSliceProfile(new SliceProfile());
+ tnFHSliceTaskInfo.setSliceInstanceId("0003-5898-8522");
+ tnFHSliceTaskInfo.setScriptName("scipt");
+ tnFHSliceTaskInfo.setVendor("vendor");
+ tnFHSliceTaskInfo.setNetworkType("type1");
+ tnFHSliceTaskInfo.setSubnetType("type1");
+ tnFHSliceTaskInfo.setEndPointId("0003-5898-8522");
+ tnFHSliceTaskInfo.setNsstinfo(new NstInfo());
+
+ tnFHSliceTaskInfo.getSuggestNssiName();
+ tnFHSliceTaskInfo.getProgress();
+ tnFHSliceTaskInfo.getStatus();
+ tnFHSliceTaskInfo.getStatusDescription();
+ tnFHSliceTaskInfo.getSliceProfile();
+ tnFHSliceTaskInfo.getSliceInstanceId();
+ tnFHSliceTaskInfo.getScriptName();
+ tnFHSliceTaskInfo.getVendor();
+ tnFHSliceTaskInfo.getNetworkType();
+ tnFHSliceTaskInfo.getSubnetType();
+ tnFHSliceTaskInfo.getEndPointId();
+ tnFHSliceTaskInfo.getNsstinfo();
+ }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/TnMHSliceTaskInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/TnMHSliceTaskInfoTest.java
new file mode 100644
index 00000000..fe91e31a
--- /dev/null
+++ b/server/src/test/java/org/onap/usecaseui/server/service/slicingdomain/so/bean/TnMHSliceTaskInfoTest.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright (C) 2021 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.service.slicingdomain.so.bean;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class TnMHSliceTaskInfoTest {
+ @Before
+ public void before() throws Exception {
+ }
+
+ @After
+ public void after() throws Exception {
+ }
+
+ @Test
+ public void testSetAndGetTnMHSliceTaskInfo() throws Exception {
+ TnMHSliceTaskInfo tnMHSliceTaskInfo = new TnMHSliceTaskInfo();
+ tnMHSliceTaskInfo.setSuggestNssiName("name");
+ tnMHSliceTaskInfo.setProgress("20");
+ tnMHSliceTaskInfo.setStatus("failed");
+ tnMHSliceTaskInfo.setStatusDescription("failed");
+ tnMHSliceTaskInfo.setSliceProfile(new SliceProfile());
+ tnMHSliceTaskInfo.setSliceInstanceId("0003-5898-8522");
+ tnMHSliceTaskInfo.setScriptName("scipt");
+ tnMHSliceTaskInfo.setVendor("vendor");
+ tnMHSliceTaskInfo.setNetworkType("type1");
+ tnMHSliceTaskInfo.setSubnetType("type1");
+ tnMHSliceTaskInfo.setEndPointId("0003-5898-8522");
+ tnMHSliceTaskInfo.setNsstinfo(new NstInfo());
+
+ tnMHSliceTaskInfo.getSuggestNssiName();
+ tnMHSliceTaskInfo.getProgress();
+ tnMHSliceTaskInfo.getStatus();
+ tnMHSliceTaskInfo.getStatusDescription();
+ tnMHSliceTaskInfo.getSliceProfile();
+ tnMHSliceTaskInfo.getSliceInstanceId();
+ tnMHSliceTaskInfo.getScriptName();
+ tnMHSliceTaskInfo.getVendor();
+ tnMHSliceTaskInfo.getNetworkType();
+ tnMHSliceTaskInfo.getSubnetType();
+ tnMHSliceTaskInfo.getEndPointId();
+ tnMHSliceTaskInfo.getNsstinfo();
+ }
+}