improve sonar coverage for uui-server 95/42995/1
authorzhangab <zhanganbing@chinamobile.com>
Mon, 16 Apr 2018 09:40:50 +0000 (17:40 +0800)
committerzhangab <zhanganbing@chinamobile.com>
Mon, 16 Apr 2018 09:40:56 +0000 (17:40 +0800)
Change-Id: Ic79f6e5f3aeebae1ca741ee4f34573146d457f91
Issue-ID: USECASEUI-103
Signed-off-by: zhangab <zhanganbing@chinamobile.com>
22 files changed:
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAICustomerRspTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAICustomerTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAIServiceSubscriptionTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/SDNCControllerRspTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/SDNCControllerTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/ServiceInstanceRspTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/ServiceInstanceTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/ServiceSubscriptionRspTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/VimInfoRspTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/VimInfoTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/sdc/bean/SDCServiceTemplateTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/sdc/bean/VnfTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/DeleteOperationRspTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/OperationProgressInformationTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/OperationProgressTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/OperationTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/ServiceOperationTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/vfc/beans/CsarTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/vfc/beans/DistributionResultTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/vfc/beans/JobStatusTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/vfc/beans/JobTest.java [new file with mode: 0644]
server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/vfc/beans/ResponseDescriptorTest.java [new file with mode: 0644]

diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAICustomerRspTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAICustomerRspTest.java
new file mode 100644 (file)
index 0000000..bc1a890
--- /dev/null
@@ -0,0 +1,59 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.aai.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.aai.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class AAICustomerRspTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testAAICustomerRsp() throws Exception {
+               AAICustomerRsp acr = new AAICustomerRsp();
+               acr.setCustomer(null);
+               acr.getCustomer();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAICustomerTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAICustomerTest.java
new file mode 100644 (file)
index 0000000..85f5e1f
--- /dev/null
@@ -0,0 +1,60 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.aai.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.aai.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class AAICustomerTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testAAICustomer() throws Exception {
+               AAICustomer ac = new AAICustomer("globalCustomerId", "subscriberName", "subscriberType");
+               ac.getGlobalCustomerId();
+               ac.getSubscriberName();
+               ac.getSubscriberType();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAIServiceSubscriptionTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/AAIServiceSubscriptionTest.java
new file mode 100644 (file)
index 0000000..6082cba
--- /dev/null
@@ -0,0 +1,58 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.aai.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.aai.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class AAIServiceSubscriptionTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testAAIServiceSubscription() throws Exception {
+               AAIServiceSubscription ass = new AAIServiceSubscription("serviceType");
+               ass.getServiceType();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/SDNCControllerRspTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/SDNCControllerRspTest.java
new file mode 100644 (file)
index 0000000..a3e8568
--- /dev/null
@@ -0,0 +1,59 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.aai.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.aai.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class SDNCControllerRspTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testSDNCControllerRsp() throws Exception {
+               SDNCControllerRsp scr = new SDNCControllerRsp();
+               scr.setEsrThirdpartySdncList(null);
+               scr.getEsrThirdpartySdncList();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/SDNCControllerTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/SDNCControllerTest.java
new file mode 100644 (file)
index 0000000..aa404e3
--- /dev/null
@@ -0,0 +1,61 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.aai.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.aai.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class SDNCControllerTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testSDNCController() throws Exception {
+               SDNCController sc = new SDNCController();
+               sc.setSdncId("sdncId");
+               sc.setLocation("location");
+               sc.getSdncId();
+               sc.getLocation();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/ServiceInstanceRspTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/ServiceInstanceRspTest.java
new file mode 100644 (file)
index 0000000..c7cbfdc
--- /dev/null
@@ -0,0 +1,60 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.aai.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.aai.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class ServiceInstanceRspTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testServiceInstanceRsp() throws Exception {
+               ServiceInstanceRsp sir = new ServiceInstanceRsp();
+               sir.setServiceInstances(null);
+               sir.getServiceInstances();
+       }
+}
+
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/ServiceInstanceTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/ServiceInstanceTest.java
new file mode 100644 (file)
index 0000000..3bc21b8
--- /dev/null
@@ -0,0 +1,66 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.aai.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.aai.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class ServiceInstanceTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testServiceInstance() throws Exception {
+               ServiceInstance si = new ServiceInstance("globalCustomerId", "serviceType", "serviceInstanceId", "subscriberName",
+                                                                                               "subscriberType", "serviceInstanceName", "serviceInstanceLocationId");
+               si.getGlobalCustomerId();
+               si.getServiceType();
+               si.getServiceInstanceId();
+               si.getSubscriberName();
+               si.getSubscriberType();
+               si.getServiceInstanceName();
+               si.getServiceInstanceLocationId();
+       }
+}
+
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/ServiceSubscriptionRspTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/ServiceSubscriptionRspTest.java
new file mode 100644 (file)
index 0000000..378f7cb
--- /dev/null
@@ -0,0 +1,60 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.aai.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.aai.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class ServiceSubscriptionRspTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testServiceSubscriptionRsp() throws Exception {
+               ServiceSubscriptionRsp ssr = new ServiceSubscriptionRsp();
+               ssr.setServiceSubscriptions(null);
+               ssr.getServiceSubscriptions();
+       }
+}
+
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/VimInfoRspTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/VimInfoRspTest.java
new file mode 100644 (file)
index 0000000..8fb0aab
--- /dev/null
@@ -0,0 +1,59 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.aai.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.aai.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class VimInfoRspTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testVimInfoRsp() throws Exception {
+               VimInfoRsp vir = new VimInfoRsp();
+               vir.setCloudRegion(null);
+               vir.getCloudRegion();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/VimInfoTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/aai/bean/VimInfoTest.java
new file mode 100644 (file)
index 0000000..f2d3402
--- /dev/null
@@ -0,0 +1,61 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.aai.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.aai.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class VimInfoTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testVimInfo() throws Exception {
+               VimInfo vi = new VimInfo("cloudOwner", "cloudRegionId");
+               vi.getCloudOwner();
+               vi.getCloudRegionId();
+               vi.hashCode();
+               vi.equals(vi);
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/sdc/bean/SDCServiceTemplateTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/sdc/bean/SDCServiceTemplateTest.java
new file mode 100644 (file)
index 0000000..7f20751
--- /dev/null
@@ -0,0 +1,65 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.sdc.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.sdc.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class SDCServiceTemplateTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testSDCServiceTemplate() throws Exception {
+               SDCServiceTemplate sst = new SDCServiceTemplate("uuid", "invariantUUID", "name", "version", "toscaModelURL", "category");
+               sst.getUuid();
+               sst.getInvariantUUID();
+               sst.getName();
+               sst.getVersion();
+               sst.getToscaModelURL();
+               sst.getCategory();
+               sst.hashCode();
+               sst.equals(sst);
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/sdc/bean/VnfTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/sdc/bean/VnfTest.java
new file mode 100644 (file)
index 0000000..bff44cc
--- /dev/null
@@ -0,0 +1,67 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.sdc.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.sdc.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class VnfTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testVnf() throws Exception {
+               Vnf vnf = new Vnf();
+               vnf.setUuid("");
+               vnf.setInvariantUUID("");
+               vnf.setName("");
+               vnf.setVersion("");
+               vnf.equals(vnf);
+               vnf.hashCode();
+               vnf.getUuid();
+               vnf.getInvariantUUID();
+               vnf.getName();
+               vnf.getVersion();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/DeleteOperationRspTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/DeleteOperationRspTest.java
new file mode 100644 (file)
index 0000000..a5dbe6e
--- /dev/null
@@ -0,0 +1,59 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.so.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.so.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class DeleteOperationRspTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testDeleteOperationRsp() throws Exception {
+               DeleteOperationRsp dor = new DeleteOperationRsp();
+               dor.setOperationId("");
+               dor.getOperationId();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/OperationProgressInformationTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/OperationProgressInformationTest.java
new file mode 100644 (file)
index 0000000..2ea3335
--- /dev/null
@@ -0,0 +1,59 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.so.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.so.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class OperationProgressInformationTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testOperationProgressInformation() throws Exception {
+               OperationProgressInformation opi = new OperationProgressInformation();
+               opi.setOperationStatus(null);
+               opi.getOperationStatus();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/OperationProgressTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/OperationProgressTest.java
new file mode 100644 (file)
index 0000000..90362ea
--- /dev/null
@@ -0,0 +1,75 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.so.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.so.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class OperationProgressTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testOperationProgress() throws Exception {
+               OperationProgress op = new OperationProgress();
+               op.setUserId("");
+               op.setOperationId("");
+               op.setOperation("");
+               op.setResult("");
+               op.setReason("");
+               op.setOperationContent("");
+               op.setProgress(1);
+               op.setOperateAt("");
+               op.setFinishedAt("");
+               op.getOperationId();
+               op.getOperation();
+               op.getResult();
+               op.getReason();
+               op.getUserId();
+               op.getOperationContent();
+               op.getProgress();
+               op.getOperateAt();
+               op.getFinishedAt();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/OperationTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/OperationTest.java
new file mode 100644 (file)
index 0000000..3db78ea
--- /dev/null
@@ -0,0 +1,61 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.so.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.so.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class OperationTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testOperation() throws Exception {
+               Operation o = new Operation();
+               o.setServiceId("");
+               o.setOperationId("");
+               o.getServiceId();
+               o.getOperationId();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/ServiceOperationTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/so/bean/ServiceOperationTest.java
new file mode 100644 (file)
index 0000000..f55f96e
--- /dev/null
@@ -0,0 +1,59 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.so.bean;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.so.bean.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class ServiceOperationTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testServiceOperation() throws Exception {
+               ServiceOperation so = new ServiceOperation();
+               so.setService(null);
+               so.getService();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/vfc/beans/CsarTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/vfc/beans/CsarTest.java
new file mode 100644 (file)
index 0000000..3b090d4
--- /dev/null
@@ -0,0 +1,59 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.vfc.beans;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.vfc.beans.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class CsarTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testCsar() throws Exception {
+               Csar csar = new Csar();
+               csar.setCsarId("");
+               csar.getCsarId();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/vfc/beans/DistributionResultTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/vfc/beans/DistributionResultTest.java
new file mode 100644 (file)
index 0000000..ff394d3
--- /dev/null
@@ -0,0 +1,63 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.vfc.beans;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.vfc.beans.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class DistributionResultTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testDistributionResult() throws Exception {
+               DistributionResult dr = new DistributionResult();
+               dr.setStatus("");
+               dr.setStatusDescription("");
+               dr.setErrorCode("");
+               dr.getStatus();
+               dr.getStatusDescription();
+               dr.getErrorCode();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/vfc/beans/JobStatusTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/vfc/beans/JobStatusTest.java
new file mode 100644 (file)
index 0000000..8c81c8b
--- /dev/null
@@ -0,0 +1,61 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.vfc.beans;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.vfc.beans.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class JobStatusTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testJobStatus() throws Exception {
+               JobStatus js = new JobStatus();
+               js.setJobId("");
+               js.setResponseDescriptor(null);
+               js.getJobId();
+               js.getResponseDescriptor();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/vfc/beans/JobTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/vfc/beans/JobTest.java
new file mode 100644 (file)
index 0000000..1b74aae
--- /dev/null
@@ -0,0 +1,59 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.vfc.beans;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.vfc.beans.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class JobTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testJob() throws Exception {
+               Job job = new Job();
+               job.setJobId("");
+               job.getJobId();
+       }
+}
diff --git a/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/vfc/beans/ResponseDescriptorTest.java b/server/src/test/java/org/onap/usecaseui/server/service/lcm/domain/vfc/beans/ResponseDescriptorTest.java
new file mode 100644 (file)
index 0000000..2fc112d
--- /dev/null
@@ -0,0 +1,67 @@
+/**
+ * Copyright (C) 2017 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.lcm.domain.vfc.beans;
+
+import org.junit.Test; 
+import org.junit.Before; 
+import org.junit.After;
+import org.junit.runner.RunWith;
+import org.onap.usecaseui.server.UsecaseuiServerApplication;
+import org.onap.usecaseui.server.service.lcm.domain.vfc.beans.*;
+import org.onap.usecaseui.server.util.DateUtils;
+import org.onap.usecaseui.server.util.Page;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import org.springframework.test.context.web.WebAppConfiguration;
+
+import java.sql.Timestamp;
+import java.text.SimpleDateFormat;
+import java.util.*;
+import java.io.*;
+import org.hibernate.Query;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.Transaction;
+
+import mockit.Mock;
+import mockit.MockUp;
+
+public class ResponseDescriptorTest {
+
+       @Before
+       public void before() throws Exception {
+       }
+
+       @After
+       public void after() throws Exception {
+       }
+
+       @Test
+       public void testResponseDescriptor() throws Exception {
+               ResponseDescriptor rd = new ResponseDescriptor();
+               rd.setStatus("");
+               rd.setProgress("");
+               rd.setStatusDescription("");
+               rd.setErrorCode("");
+               rd.setResponseId("");
+               rd.getStatus();
+               rd.getProgress();
+               rd.getStatusDescription();
+               rd.getErrorCode();
+               rd.getResponseId();
+       }
+}