Added oparent to sdc main
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / resources / data / OperationalEnvironmentEntryTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.be.resources.data;
22
23 import org.junit.Test;
24 import org.openecomp.sdc.be.datatypes.enums.EnvironmentStatusEnum;
25
26 import java.util.Date;
27 import java.util.Set;
28
29 public class OperationalEnvironmentEntryTest {
30
31         private OperationalEnvironmentEntry createTestSubject() {
32                 return new OperationalEnvironmentEntry();
33         }
34
35         @Test
36         public void testGetLastModified() throws Exception {
37                 OperationalEnvironmentEntry testSubject;
38                 Date result;
39
40                 // default test
41                 testSubject = createTestSubject();
42                 result = testSubject.getLastModified();
43         }
44
45         @Test
46         public void testSetLastModified() throws Exception {
47                 OperationalEnvironmentEntry testSubject;
48                 Date lastModified = null;
49
50                 // default test
51                 testSubject = createTestSubject();
52                 testSubject.setLastModified(lastModified);
53         }
54
55         @Test
56         public void testGetEnvironmentId() throws Exception {
57                 OperationalEnvironmentEntry testSubject;
58                 String result;
59
60                 // default test
61                 testSubject = createTestSubject();
62                 result = testSubject.getEnvironmentId();
63         }
64
65         @Test
66         public void testSetEnvironmentId() throws Exception {
67                 OperationalEnvironmentEntry testSubject;
68                 String environmentId = "";
69
70                 // default test
71                 testSubject = createTestSubject();
72                 testSubject.setEnvironmentId(environmentId);
73         }
74
75         @Test
76         public void testGetTenant() throws Exception {
77                 OperationalEnvironmentEntry testSubject;
78                 String result;
79
80                 // default test
81                 testSubject = createTestSubject();
82                 result = testSubject.getTenant();
83         }
84
85         @Test
86         public void testSetTenant() throws Exception {
87                 OperationalEnvironmentEntry testSubject;
88                 String tenant = "";
89
90                 // default test
91                 testSubject = createTestSubject();
92                 testSubject.setTenant(tenant);
93         }
94
95         @Test
96         public void testGetIsProduction() throws Exception {
97                 OperationalEnvironmentEntry testSubject;
98                 Boolean result;
99
100                 // default test
101                 testSubject = createTestSubject();
102                 result = testSubject.getIsProduction();
103         }
104
105         @Test
106         public void testSetIsProduction() throws Exception {
107                 OperationalEnvironmentEntry testSubject;
108                 Boolean production = null;
109
110                 // default test
111                 testSubject = createTestSubject();
112                 testSubject.setIsProduction(production);
113         }
114
115         @Test
116         public void testGetEcompWorkloadContext() throws Exception {
117                 OperationalEnvironmentEntry testSubject;
118                 String result;
119
120                 // default test
121                 testSubject = createTestSubject();
122                 result = testSubject.getEcompWorkloadContext();
123         }
124
125         @Test
126         public void testSetEcompWorkloadContext() throws Exception {
127                 OperationalEnvironmentEntry testSubject;
128                 String ecompWorkloadContext = "";
129
130                 // default test
131                 testSubject = createTestSubject();
132                 testSubject.setEcompWorkloadContext(ecompWorkloadContext);
133         }
134
135         @Test
136         public void testGetStatus() throws Exception {
137                 OperationalEnvironmentEntry testSubject;
138                 String result;
139
140                 // default test
141                 testSubject = createTestSubject();
142                 result = testSubject.getStatus();
143         }
144
145         @Test
146         public void testSetStatus() throws Exception {
147                 OperationalEnvironmentEntry testSubject;
148                 String status = "";
149
150                 // default test
151                 testSubject = createTestSubject();
152                 testSubject.setStatus(status);
153         }
154
155         @Test
156         public void testSetStatus_1() throws Exception {
157                 OperationalEnvironmentEntry testSubject;
158
159                 // default test
160                 testSubject = createTestSubject();
161                 testSubject.setStatus(EnvironmentStatusEnum.COMPLETED);
162         }
163
164         @Test
165         public void testGetDmaapUebAddress() throws Exception {
166                 OperationalEnvironmentEntry testSubject;
167                 Set<String> result;
168
169                 // default test
170                 testSubject = createTestSubject();
171                 result = testSubject.getDmaapUebAddress();
172         }
173
174         @Test
175         public void testSetDmaapUebAddress() throws Exception {
176                 OperationalEnvironmentEntry testSubject;
177                 Set<String> dmaapUebAddress = null;
178
179                 // default test
180                 testSubject = createTestSubject();
181                 testSubject.setDmaapUebAddress(dmaapUebAddress);
182         }
183
184         @Test
185         public void testAddDmaapUebAddress() throws Exception {
186                 OperationalEnvironmentEntry testSubject;
187                 String address = "";
188
189                 // default test
190                 testSubject = createTestSubject();
191                 testSubject.addDmaapUebAddress(address);
192         }
193
194         @Test
195         public void testGetUebApikey() throws Exception {
196                 OperationalEnvironmentEntry testSubject;
197                 String result;
198
199                 // default test
200                 testSubject = createTestSubject();
201                 result = testSubject.getUebApikey();
202         }
203
204         @Test
205         public void testSetUebApikey() throws Exception {
206                 OperationalEnvironmentEntry testSubject;
207                 String uebApikey = "";
208
209                 // default test
210                 testSubject = createTestSubject();
211                 testSubject.setUebApikey(uebApikey);
212         }
213
214         @Test
215         public void testGetUebSecretKey() throws Exception {
216                 OperationalEnvironmentEntry testSubject;
217                 String result;
218
219                 // default test
220                 testSubject = createTestSubject();
221                 result = testSubject.getUebSecretKey();
222         }
223
224         @Test
225         public void testSetUebSecretKey() throws Exception {
226                 OperationalEnvironmentEntry testSubject;
227                 String uebSecretKey = "";
228
229                 // default test
230                 testSubject = createTestSubject();
231                 testSubject.setUebSecretKey(uebSecretKey);
232         }
233
234         @Test
235         public void testToString() throws Exception {
236                 OperationalEnvironmentEntry testSubject;
237                 String result;
238
239                 // default test
240                 testSubject = createTestSubject();
241                 result = testSubject.toString();
242         }
243 }