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.tenant;
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;
27 public class TenantAdapterRestTest {
29 // TODO: following test case is done for coverage
30 // later it should be modified for proper test.
32 TenantAdapterRest tenantAdapterRest = new TenantAdapterRest();
34 will need to rewrite these.. commenting for now...
35 @Test(expected = ClassFormatError.class)
36 public void healthcheck() throws Exception {
37 tenantAdapterRest.healthcheck();
40 @Test(expected = ClassFormatError.class)
41 public void createTenant() throws Exception {
42 tenantAdapterRest.createTenant(new CreateTenantRequest());
45 @Test(expected = ClassFormatError.class)
46 public void deleteTenant() throws Exception {
47 tenantAdapterRest.deleteTenant("test", new DeleteTenantRequest());
50 @Test(expected = ClassFormatError.class)
51 public void queryTenant() throws Exception {
52 tenantAdapterRest.queryTenant("test", "test", "requestid", "serviceInstanceId");
55 @Test(expected = ClassFormatError.class)
56 public void rollbackTenant() throws Exception {
57 tenantAdapterRest.rollbackTenant("action", new RollbackTenantRequest());