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