Merge "Reorder modifiers"
[so.git] / adapters / mso-tenant-adapter / src / test / java / org / openecomp / mso / adapters / tenant / TenantAdapterRestTest.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.tenant;
21
22 import org.junit.Test;
23 import org.openecomp.mso.adapters.tenantrest.CreateTenantRequest;
24 import org.openecomp.mso.adapters.tenantrest.DeleteTenantRequest;
25 import org.openecomp.mso.adapters.tenantrest.RollbackTenantRequest;
26
27 public class TenantAdapterRestTest {
28
29     // TODO: following test case is done for coverage
30     // later it should be modified for proper test.
31     
32     TenantAdapterRest tenantAdapterRest = new TenantAdapterRest();
33 /*
34 will need to rewrite these.. commenting for now... 
35     @Test(expected = ClassFormatError.class)
36     public void healthcheck() throws Exception {
37         tenantAdapterRest.healthcheck();
38     }
39
40     @Test(expected = ClassFormatError.class)
41     public void createTenant() throws Exception {
42         tenantAdapterRest.createTenant(new CreateTenantRequest());
43     }
44
45     @Test(expected = ClassFormatError.class)
46     public void deleteTenant() throws Exception {
47         tenantAdapterRest.deleteTenant("test", new DeleteTenantRequest());
48     }
49
50     @Test(expected = ClassFormatError.class)
51     public void queryTenant() throws Exception {
52         tenantAdapterRest.queryTenant("test", "test", "requestid", "serviceInstanceId");
53     }
54
55     @Test(expected = ClassFormatError.class)
56     public void rollbackTenant() throws Exception {
57         tenantAdapterRest.rollbackTenant("action", new RollbackTenantRequest());
58     }
59 */
60 }