3c90d368d018cf54b15209c343d6a05d526103d5
[aai/esr-server.git] / esr-mgr / src / test / java / org / onap / aai / esr / entity / aai / EsrSystemInfoTest.java
1 /**
2  * Copyright 2017 ZTE Corporation.
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 package org.onap.aai.esr.entity.aai;
17
18 import static org.junit.Assert.assertEquals;
19 import org.junit.Test;
20
21 public class EsrSystemInfoTest {
22
23     @Test
24     public void getterAndSetter4esrSystemInfoId() {
25         final String esrSystemInfoId = "esrSystemInfoId-test";
26         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
27         esrSystemInfo.setEsrSystemInfoId(esrSystemInfoId);
28         assertEquals(esrSystemInfo.getEsrSystemInfoId(), esrSystemInfoId);
29     }
30
31     @Test
32     public void getterAndSetter4systemName() {
33         final String systemName = "systemName-test";
34         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
35         esrSystemInfo.setSystemName(systemName);
36         assertEquals(esrSystemInfo.getSystemName(), systemName);
37     }
38
39     @Test
40     public void getterAndSetter4type() {
41         final String type = "type-test";
42         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
43         esrSystemInfo.setType(type);
44         assertEquals(esrSystemInfo.getType(), type);
45     }
46
47     @Test
48     public void getterAndSetter4vendor() {
49         final String vendor = "vendor-test";
50         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
51         esrSystemInfo.setVendor(vendor);
52         assertEquals(esrSystemInfo.getVendor(), vendor);
53     }
54
55     @Test
56     public void getterAndSetter4version() {
57         final String version = "version-test";
58         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
59         esrSystemInfo.setVersion(version);
60         assertEquals(esrSystemInfo.getVersion(), version);
61     }
62
63     @Test
64     public void getterAndSetter4serviceUrl() {
65         final String serviceUrl = "serviceUrl-test";
66         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
67         esrSystemInfo.setServiceUrl(serviceUrl);
68         assertEquals(esrSystemInfo.getServiceUrl(), serviceUrl);
69     }
70
71     @Test
72     public void getterAndSetter4userName() {
73         final String userName = "userName-test";
74         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
75         esrSystemInfo.setUserName(userName);
76         assertEquals(esrSystemInfo.getUserName(), userName);
77     }
78
79     @Test
80     public void getterAndSetter4password() {
81         final String password = "password-test";
82         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
83         esrSystemInfo.setPassword(password);
84         assertEquals(esrSystemInfo.getPassword(), password);
85     }
86
87     @Test
88     public void getterAndSetter4systemType() {
89         final String systemType = "systemType-test";
90         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
91         esrSystemInfo.setSystemType(systemType);
92         assertEquals(esrSystemInfo.getSystemType(), systemType);
93     }
94
95     @Test
96     public void getterAndSetter4protocol() {
97         final String protocol = "protocol-test";
98         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
99         esrSystemInfo.setProtocol(protocol);
100         assertEquals(esrSystemInfo.getProtocol(), protocol);
101     }
102
103     @Test
104     public void getterAndSetter4sslCassert() {
105         final String sslCassert = "sslCassert-test";
106         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
107         esrSystemInfo.setSslCassert(sslCassert);
108         assertEquals(esrSystemInfo.getSslCassert(), sslCassert);
109     }
110
111     @Test
112     public void getterAndSetter4sslInsecure() {
113         final Boolean sslInsecure = true;
114         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
115         esrSystemInfo.setSslInsecure(sslInsecure);
116         assertEquals(esrSystemInfo.getSslInsecure(), sslInsecure);
117     }
118
119     @Test
120     public void getterAndSetter4ipAddress() {
121         final String ipAddress = "ipAddress-test";
122         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
123         esrSystemInfo.setIpAddress(ipAddress);
124         assertEquals(esrSystemInfo.getIpAddress(), ipAddress);
125     }
126
127     @Test
128     public void getterAndSetter4port() {
129         final String port = "port-test";
130         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
131         esrSystemInfo.setIpAddress(port);
132         assertEquals(esrSystemInfo.getIpAddress(), port);
133     }
134
135     @Test
136     public void getterAndSetter4cloudDomain() {
137         final String cloudDomain = "cloudDomain-test";
138         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
139         esrSystemInfo.setCloudDomain(cloudDomain);
140         assertEquals(esrSystemInfo.getCloudDomain(), cloudDomain);
141     }
142
143     @Test
144     public void getterAndSetter4defaultTenant() {
145         final String defaultTenant = "defaultTenant-test";
146         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
147         esrSystemInfo.setDefaultTenant(defaultTenant);
148         assertEquals(esrSystemInfo.getDefaultTenant(), defaultTenant);
149     }
150
151     @Test
152     public void getterAndSetter4passive() {
153         final Boolean passive = true;
154         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
155         esrSystemInfo.setPassive(passive);
156         assertEquals(esrSystemInfo.getPassive(), passive);
157     }
158
159     @Test
160     public void getterAndSetter4remotePath() {
161         final String remotePath = "remotePath-test";
162         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
163         esrSystemInfo.setRemotePath(remotePath);
164         assertEquals(esrSystemInfo.getRemotePath(), remotePath);
165     }
166
167     @Test
168     public void getterAndSetter4systemStatus() {
169         final String systemStatus = "defaultTenant-test";
170         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
171         esrSystemInfo.setSystemStatus(systemStatus);
172         assertEquals(esrSystemInfo.getSystemStatus(), systemStatus);
173     }
174
175     @Test
176     public void getterAndSetter4resourceVersion() {
177         final String resourceVersion = "resourceVersion-test";
178         EsrSystemInfo esrSystemInfo = new EsrSystemInfo();
179         esrSystemInfo.setResouceVersion(resourceVersion);
180         assertEquals(esrSystemInfo.getResouceVersion(), resourceVersion);
181     }
182 }