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 EsrSystemInfoTest {
24 public void getterAndSetter4esrSystemInfoId() {
25 final String esrSystemInfoId = "esrSystemInfoId-test";
26 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
27 esrSystemInfo.setEsrSystemInfoId(esrSystemInfoId);
28 assertEquals(esrSystemInfo.getEsrSystemInfoId(), esrSystemInfoId);
32 public void getterAndSetter4systemName() {
33 final String systemName = "systemName-test";
34 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
35 esrSystemInfo.setSystemName(systemName);
36 assertEquals(esrSystemInfo.getSystemName(), systemName);
40 public void getterAndSetter4type() {
41 final String type = "type-test";
42 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
43 esrSystemInfo.setType(type);
44 assertEquals(esrSystemInfo.getType(), type);
48 public void getterAndSetter4vendor() {
49 final String vendor = "vendor-test";
50 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
51 esrSystemInfo.setVendor(vendor);
52 assertEquals(esrSystemInfo.getVendor(), vendor);
56 public void getterAndSetter4version() {
57 final String version = "version-test";
58 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
59 esrSystemInfo.setVersion(version);
60 assertEquals(esrSystemInfo.getVersion(), version);
64 public void getterAndSetter4serviceUrl() {
65 final String serviceUrl = "serviceUrl-test";
66 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
67 esrSystemInfo.setServiceUrl(serviceUrl);
68 assertEquals(esrSystemInfo.getServiceUrl(), serviceUrl);
72 public void getterAndSetter4userName() {
73 final String userName = "userName-test";
74 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
75 esrSystemInfo.setUserName(userName);
76 assertEquals(esrSystemInfo.getUserName(), userName);
80 public void getterAndSetter4password() {
81 final String password = "password-test";
82 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
83 esrSystemInfo.setPassword(password);
84 assertEquals(esrSystemInfo.getPassword(), password);
88 public void getterAndSetter4systemType() {
89 final String systemType = "systemType-test";
90 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
91 esrSystemInfo.setSystemType(systemType);
92 assertEquals(esrSystemInfo.getSystemType(), systemType);
96 public void getterAndSetter4protocol() {
97 final String protocol = "protocol-test";
98 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
99 esrSystemInfo.setProtocol(protocol);
100 assertEquals(esrSystemInfo.getProtocol(), protocol);
104 public void getterAndSetter4sslCassert() {
105 final String sslCassert = "sslCassert-test";
106 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
107 esrSystemInfo.setSslCassert(sslCassert);
108 assertEquals(esrSystemInfo.getSslCassert(), sslCassert);
112 public void getterAndSetter4sslInsecure() {
113 final Boolean sslInsecure = true;
114 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
115 esrSystemInfo.setSslInsecure(sslInsecure);
116 assertEquals(esrSystemInfo.getSslInsecure(), sslInsecure);
120 public void getterAndSetter4ipAddress() {
121 final String ipAddress = "ipAddress-test";
122 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
123 esrSystemInfo.setIpAddress(ipAddress);
124 assertEquals(esrSystemInfo.getIpAddress(), ipAddress);
128 public void getterAndSetter4port() {
129 final String port = "port-test";
130 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
131 esrSystemInfo.setIpAddress(port);
132 assertEquals(esrSystemInfo.getIpAddress(), port);
136 public void getterAndSetter4cloudDomain() {
137 final String cloudDomain = "cloudDomain-test";
138 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
139 esrSystemInfo.setCloudDomain(cloudDomain);
140 assertEquals(esrSystemInfo.getCloudDomain(), cloudDomain);
144 public void getterAndSetter4defaultTenant() {
145 final String defaultTenant = "defaultTenant-test";
146 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
147 esrSystemInfo.setDefaultTenant(defaultTenant);
148 assertEquals(esrSystemInfo.getDefaultTenant(), defaultTenant);
152 public void getterAndSetter4passive() {
153 final Boolean passive = true;
154 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
155 esrSystemInfo.setPassive(passive);
156 assertEquals(esrSystemInfo.getPassive(), passive);
160 public void getterAndSetter4remotePath() {
161 final String remotePath = "remotePath-test";
162 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
163 esrSystemInfo.setRemotePath(remotePath);
164 assertEquals(esrSystemInfo.getRemotePath(), remotePath);
168 public void getterAndSetter4systemStatus() {
169 final String systemStatus = "defaultTenant-test";
170 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
171 esrSystemInfo.setSystemStatus(systemStatus);
172 assertEquals(esrSystemInfo.getSystemStatus(), systemStatus);
176 public void getterAndSetter4resourceVersion() {
177 final String resourceVersion = "resourceVersion-test";
178 EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
179 esrSystemInfo.setResouceVersion(resourceVersion);
180 assertEquals(esrSystemInfo.getResouceVersion(), resourceVersion);