2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2018 Huawei Technologies Co., Ltd. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
20 package org.openecomp.mso.adapters.requestsdb;
22 import org.junit.Test;
24 public class MsoRequestsDbAdapterImplTest {
26 // TODO: following test case is done for coverage
27 // later it should be modified for proper test.
28 MsoRequestsDbAdapterImpl msoRequestsDbAdapter = new MsoRequestsDbAdapterImpl();
30 @Test(expected = NullPointerException.class)
31 public void updateInfraRequest() throws Exception {
32 msoRequestsDbAdapter.updateInfraRequest("test", "test",
33 "test", "test", RequestStatusType.COMPLETE, "test",
34 "test", "test", "test", "test",
35 "test", "test", "test",
36 "test", "test", "tets");
39 @Test(expected = NullPointerException.class)
40 public void getInfraRequest() throws Exception {
41 msoRequestsDbAdapter.getInfraRequest("test");
44 @Test(expected = NullPointerException.class)
45 public void getSiteStatus() throws Exception {
46 msoRequestsDbAdapter.getSiteStatus("test");
49 @Test(expected = NullPointerException.class)
50 public void updateServiceOperationStatus() throws Exception {
51 msoRequestsDbAdapter.updateServiceOperationStatus("test", "test",
52 "test", "test", "test", "test",
56 @Test(expected = NullPointerException.class)
57 public void initResourceOperationStatus() throws Exception {
58 msoRequestsDbAdapter.initResourceOperationStatus("test", "test", "test", "uuid");
61 @Test(expected = NullPointerException.class)
62 public void getResourceOperationStatus() throws Exception {
63 msoRequestsDbAdapter.getResourceOperationStatus("test", "test", "uuid");
66 @Test(expected = NullPointerException.class)
67 public void updateResourceOperationStatus() throws Exception {
68 msoRequestsDbAdapter.updateResourceOperationStatus("test", "test",
69 "uuid", "type", "instance-id",
70 "jobid", "test", "progress", "errorcode",