Merge "Reorder modifiers"
[so.git] / adapters / mso-requests-db-adapter / src / test / java / org / openecomp / mso / adapters / requestsdb / MsoRequestsDbAdapterImplTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20 package org.openecomp.mso.adapters.requestsdb;
21
22 import org.junit.Test;
23
24 public class MsoRequestsDbAdapterImplTest {
25
26     // TODO: following test case is done for coverage
27     // later it should be modified for proper test.
28     MsoRequestsDbAdapterImpl msoRequestsDbAdapter = new MsoRequestsDbAdapterImpl();
29
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");
37     }
38
39     @Test(expected = NullPointerException.class)
40     public void getInfraRequest() throws Exception {
41         msoRequestsDbAdapter.getInfraRequest("test");
42     }
43
44     @Test(expected = NullPointerException.class)
45     public void getSiteStatus() throws Exception {
46         msoRequestsDbAdapter.getSiteStatus("test");
47     }
48
49     @Test(expected = NullPointerException.class)
50     public void updateServiceOperationStatus() throws Exception {
51         msoRequestsDbAdapter.updateServiceOperationStatus("test", "test",
52                 "test", "test", "test", "test",
53                 "test", "test");
54     }
55
56     @Test(expected = NullPointerException.class)
57     public void initResourceOperationStatus() throws Exception {
58         msoRequestsDbAdapter.initResourceOperationStatus("test", "test", "test", "uuid");
59     }
60
61     @Test(expected = NullPointerException.class)
62     public void getResourceOperationStatus() throws Exception {
63         msoRequestsDbAdapter.getResourceOperationStatus("test", "test", "uuid");
64     }
65
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",
71                 "status-desc");
72     }
73
74 }