2 * Copyright 2017 ZTE Corporation.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.onap.aai.esr.entity.aai;
18 import static org.junit.Assert.assertEquals;
19 import org.junit.Test;
21 public class CloudRegionTest {
24 public void getterAndSetter4CloudOwner() {
25 final String cloudOwner = "cloud-owner-test";
26 CloudRegion cloudRegion = new CloudRegion();
27 cloudRegion.setCloudOwner(cloudOwner);
28 assertEquals(cloudRegion.getCloudOwner(), cloudOwner);
32 public void getterAndSetter4CloudRegionId() {
33 final String cloudRegionId = "cloud-region-id-test";
34 CloudRegion cloudRegion = new CloudRegion();
35 cloudRegion.setCloudRegionId(cloudRegionId);
36 assertEquals(cloudRegion.getCloudRegionId(), cloudRegionId);
40 public void getterAndSetter4CloudType() {
41 final String cloudType = "cloud-type-test";
42 CloudRegion cloudRegion = new CloudRegion();
43 cloudRegion.setCloudType(cloudType);
44 assertEquals(cloudRegion.getCloudType(), cloudType);
48 public void getterAndSetter4cloudRegionVersion() {
49 final String cloudRegionVersion = "cloud-region-version-test";
50 CloudRegion cloudRegion = new CloudRegion();
51 cloudRegion.setCloudRegionVersion(cloudRegionVersion);
52 assertEquals(cloudRegion.getCloudRegionVersion(), cloudRegionVersion);
56 public void getterAndSetter4ownerDefinedType() {
57 final String ownerDefinedType = "owner-defined-type-test";
58 CloudRegion cloudRegion = new CloudRegion();
59 cloudRegion.setOwnerDefinedType(ownerDefinedType);
60 assertEquals(cloudRegion.getOwnerDefinedType(), ownerDefinedType);
64 public void getterAndSetter4cloudZone() {
65 final String cloudZone = "cloudZone-test";
66 CloudRegion cloudRegion = new CloudRegion();
67 cloudRegion.setCloudZone(cloudZone);
68 assertEquals(cloudRegion.getCloudZone(), cloudZone);
72 public void getterAndSetter4complexName() {
73 final String complexName = "complexName-test";
74 CloudRegion cloudRegion = new CloudRegion();
75 cloudRegion.setComplexName(complexName);
76 assertEquals(cloudRegion.getComplexName(), complexName);
80 public void getterAndSetter4cloudExtraInfo() {
81 final String cloudExtraInfo = "cloudExtraInfo-test";
82 CloudRegion cloudRegion = new CloudRegion();
83 cloudRegion.setCloudExtraInfo(cloudExtraInfo);
84 assertEquals(cloudRegion.getCloudExtraInfo(), cloudExtraInfo);