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;
20 import org.junit.Test;
22 public class EsrSystemInfoTest {
25 public void getterAndSetter4esrSystemInfoId(){
26 final String esrSystemInfoId = "esrSystemInfoId-test";
27 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
28 esrSystemInfo.setEsrSystemInfoId(esrSystemInfoId);
29 assertEquals(esrSystemInfo.getEsrSystemInfoId(), esrSystemInfoId);
33 public void getterAndSetter4systemName(){
34 final String systemName = "systemName-test";
35 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
36 esrSystemInfo.setSystemName(systemName);
37 assertEquals(esrSystemInfo.getSystemName(), systemName);
41 public void getterAndSetter4type(){
42 final String type = "type-test";
43 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
44 esrSystemInfo.setType(type);
45 assertEquals(esrSystemInfo.getType(), type);
49 public void getterAndSetter4vendor(){
50 final String vendor = "vendor-test";
51 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
52 esrSystemInfo.setVendor(vendor);
53 assertEquals(esrSystemInfo.getVendor(), vendor);
57 public void getterAndSetter4version(){
58 final String version = "version-test";
59 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
60 esrSystemInfo.setVersion(version);
61 assertEquals(esrSystemInfo.getVersion(), version);
65 public void getterAndSetter4serviceUrl(){
66 final String serviceUrl = "serviceUrl-test";
67 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
68 esrSystemInfo.setServiceUrl(serviceUrl);
69 assertEquals(esrSystemInfo.getServiceUrl(), serviceUrl);
73 public void getterAndSetter4userName(){
74 final String userName = "userName-test";
75 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
76 esrSystemInfo.setUserName(userName);
77 assertEquals(esrSystemInfo.getUserName(), userName);
81 public void getterAndSetter4password(){
82 final String password = "password-test";
83 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
84 esrSystemInfo.setPassword(password);
85 assertEquals(esrSystemInfo.getPassword(), password);
89 public void getterAndSetter4systemType(){
90 final String systemType = "systemType-test";
91 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
92 esrSystemInfo.setSystemType(systemType);
93 assertEquals(esrSystemInfo.getSystemType(), systemType);
97 public void getterAndSetter4protocol(){
98 final String protocol = "protocol-test";
99 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
100 esrSystemInfo.setProtocol(protocol);
101 assertEquals(esrSystemInfo.getProtocol(), protocol);
105 public void getterAndSetter4sslCassert(){
106 final String sslCassert = "sslCassert-test";
107 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
108 esrSystemInfo.setSslCassert(sslCassert);
109 assertEquals(esrSystemInfo.getSslCassert(), sslCassert);
113 public void getterAndSetter4sslInsecure(){
114 final Boolean sslInsecure = true;
115 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
116 esrSystemInfo.setSslInsecure(sslInsecure);
117 assertEquals(esrSystemInfo.getSslInsecure(), sslInsecure);
121 public void getterAndSetter4ipAddress(){
122 final String ipAddress = "ipAddress-test";
123 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
124 esrSystemInfo.setIpAddress(ipAddress);
125 assertEquals(esrSystemInfo.getIpAddress(), ipAddress);
129 public void getterAndSetter4port(){
130 final String port = "port-test";
131 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
132 esrSystemInfo.setIpAddress(port);
133 assertEquals(esrSystemInfo.getIpAddress(), port);
137 public void getterAndSetter4cloudDomain(){
138 final String cloudDomain = "cloudDomain-test";
139 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
140 esrSystemInfo.setCloudDomain(cloudDomain);
141 assertEquals(esrSystemInfo.getCloudDomain(), cloudDomain);
145 public void getterAndSetter4defaultTenant(){
146 final String defaultTenant = "defaultTenant-test";
147 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
148 esrSystemInfo.setDefaultTenant(defaultTenant);
149 assertEquals(esrSystemInfo.getDefaultTenant(), defaultTenant);
153 public void getterAndSetter4passive(){
154 final Boolean passive = true;
155 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
156 esrSystemInfo.setPassive(passive);
157 assertEquals(esrSystemInfo.getPassive(), passive);
161 public void getterAndSetter4remotePath(){
162 final String remotePath = "remotePath-test";
163 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
164 esrSystemInfo.setRemotePath(remotePath);
165 assertEquals(esrSystemInfo.getRemotePath(), remotePath);
169 public void getterAndSetter4systemStatus(){
170 final String systemStatus = "defaultTenant-test";
171 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
172 esrSystemInfo.setSystemStatus(systemStatus);
173 assertEquals(esrSystemInfo.getSystemStatus(), systemStatus);
177 public void getterAndSetter4resourceVersion(){
178 final String resourceVersion = "resourceVersion-test";
179 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
180 esrSystemInfo.setResouceVersion(resourceVersion);
181 assertEquals(esrSystemInfo.getResouceVersion(), resourceVersion);