added file to test VServerInfo.java
[appc.git] / appc-outbound / appc-aai-client / provider / src / test / java / org / onap / appc / aai / client / aai / TestVServerInfo.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2019 IBM.
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  * 
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.onap.appc.aai.client.aai;
23
24 import static org.junit.Assert.assertEquals;
25
26 import java.util.HashMap;
27 import java.util.Map;
28
29 import org.junit.Before;
30 import org.junit.Test;
31
32 public class TestVServerInfo {
33
34     VServerInfo vServerInfo;
35
36     @Before
37     public void setUp() throws MissingParameterException {
38         Map<String, String> params = new HashMap<>();
39         params.put("vserverId", "testVserverId");
40         params.put("tenantId", "testTenantId");
41         params.put("cloudOwner", "testCloudOwner");
42         params.put("cloudRegionId", "testCloudRegionId");
43         vServerInfo = new VServerInfo(params);
44     }
45
46     @Test
47     public void testVserverId() {
48         assertEquals("testVserverId", vServerInfo.getVserverId());
49     }
50
51     @Test
52     public void testTenantId() {
53         assertEquals("testTenantId", vServerInfo.getTenantId());
54     }
55
56     @Test
57     public void testCloudOwner() {
58         assertEquals("testCloudOwner", vServerInfo.getCloudOwner());
59     }
60
61     @Test
62     public void testCloudRegionId() {
63         assertEquals("testCloudRegionId", vServerInfo.getCloudRegionId());
64     }
65
66 }