Added oparent to sdc main
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / resources / data / auditing / DistributionDeployEventTest.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.auditing;
22
23 import org.junit.Test;
24 import org.openecomp.sdc.be.resources.data.auditing.model.CommonAuditData;
25 import org.openecomp.sdc.be.resources.data.auditing.model.ResourceCommonInfo;
26
27 import java.util.Date;
28 import java.util.UUID;
29
30
31 public class DistributionDeployEventTest {
32
33         private DistributionDeployEvent createTestSubject() {
34                 return new DistributionDeployEvent();
35         }
36
37         @Test
38         public void testCtor() throws Exception {
39                 new DistributionDeployEvent();
40                 new DistributionDeployEvent("mock", CommonAuditData.newBuilder().build(),new ResourceCommonInfo(), "mock", "mock", "mock");
41         }
42         
43         @Test
44         public void testFillFields() throws Exception {
45                 DistributionDeployEvent testSubject;
46
47                 // default test
48                 testSubject = createTestSubject();
49                 testSubject.fillFields();
50         }
51
52         
53         @Test
54         public void testGetResourceName() throws Exception {
55                 DistributionDeployEvent testSubject;
56                 String result;
57
58                 // default test
59                 testSubject = createTestSubject();
60                 result = testSubject.getResourceName();
61         }
62
63         
64         @Test
65         public void testSetResourceName() throws Exception {
66                 DistributionDeployEvent testSubject;
67                 String resourceName = "";
68
69                 // default test
70                 testSubject = createTestSubject();
71                 testSubject.setResourceName(resourceName);
72         }
73
74         
75         @Test
76         public void testGetResourceType() throws Exception {
77                 DistributionDeployEvent testSubject;
78                 String result;
79
80                 // default test
81                 testSubject = createTestSubject();
82                 result = testSubject.getResourceType();
83         }
84
85         
86         @Test
87         public void testSetResourceType() throws Exception {
88                 DistributionDeployEvent testSubject;
89                 String resourceType = "";
90
91                 // default test
92                 testSubject = createTestSubject();
93                 testSubject.setResourceType(resourceType);
94         }
95
96         
97         @Test
98         public void testGetCurrVersion() throws Exception {
99                 DistributionDeployEvent testSubject;
100                 String result;
101
102                 // default test
103                 testSubject = createTestSubject();
104                 result = testSubject.getCurrVersion();
105         }
106
107         
108         @Test
109         public void testSetCurrVersion() throws Exception {
110                 DistributionDeployEvent testSubject;
111                 String currVersion = "";
112
113                 // default test
114                 testSubject = createTestSubject();
115                 testSubject.setCurrVersion(currVersion);
116         }
117
118         
119         @Test
120         public void testGetTimebaseduuid() throws Exception {
121                 DistributionDeployEvent testSubject;
122                 UUID result;
123
124                 // default test
125                 testSubject = createTestSubject();
126                 result = testSubject.getTimebaseduuid();
127         }
128
129         
130         @Test
131         public void testSetTimebaseduuid() throws Exception {
132                 DistributionDeployEvent testSubject;
133                 UUID timebaseduuid = null;
134
135                 // default test
136                 testSubject = createTestSubject();
137                 testSubject.setTimebaseduuid(timebaseduuid);
138         }
139
140         
141         @Test
142         public void testGetTimestamp1() throws Exception {
143                 DistributionDeployEvent testSubject;
144                 Date result;
145
146                 // default test
147                 testSubject = createTestSubject();
148                 result = testSubject.getTimestamp1();
149         }
150
151         
152         @Test
153         public void testSetTimestamp1() throws Exception {
154                 DistributionDeployEvent testSubject;
155                 Date timestamp1 = null;
156
157                 // default test
158                 testSubject = createTestSubject();
159                 testSubject.setTimestamp1(timestamp1);
160         }
161
162         
163         @Test
164         public void testGetRequestId() throws Exception {
165                 DistributionDeployEvent testSubject;
166                 String result;
167
168                 // default test
169                 testSubject = createTestSubject();
170                 result = testSubject.getRequestId();
171         }
172
173         
174         @Test
175         public void testSetRequestId() throws Exception {
176                 DistributionDeployEvent testSubject;
177                 String requestId = "";
178
179                 // default test
180                 testSubject = createTestSubject();
181                 testSubject.setRequestId(requestId);
182         }
183
184         
185         @Test
186         public void testGetServiceInstanceId() throws Exception {
187                 DistributionDeployEvent testSubject;
188                 String result;
189
190                 // default test
191                 testSubject = createTestSubject();
192                 result = testSubject.getServiceInstanceId();
193         }
194
195         
196         @Test
197         public void testSetServiceInstanceId() throws Exception {
198                 DistributionDeployEvent testSubject;
199                 String serviceInstanceId = "";
200
201                 // default test
202                 testSubject = createTestSubject();
203                 testSubject.setServiceInstanceId(serviceInstanceId);
204         }
205
206         
207         @Test
208         public void testGetAction() throws Exception {
209                 DistributionDeployEvent testSubject;
210                 String result;
211
212                 // default test
213                 testSubject = createTestSubject();
214                 result = testSubject.getAction();
215         }
216
217         
218         @Test
219         public void testSetAction() throws Exception {
220                 DistributionDeployEvent testSubject;
221                 String action = "";
222
223                 // default test
224                 testSubject = createTestSubject();
225                 testSubject.setAction(action);
226         }
227
228         
229         @Test
230         public void testGetStatus() throws Exception {
231                 DistributionDeployEvent testSubject;
232                 String result;
233
234                 // default test
235                 testSubject = createTestSubject();
236                 result = testSubject.getStatus();
237         }
238
239         
240         @Test
241         public void testSetStatus() throws Exception {
242                 DistributionDeployEvent testSubject;
243                 String status = "";
244
245                 // default test
246                 testSubject = createTestSubject();
247                 testSubject.setStatus(status);
248         }
249
250         
251         @Test
252         public void testGetDesc() throws Exception {
253                 DistributionDeployEvent testSubject;
254                 String result;
255
256                 // default test
257                 testSubject = createTestSubject();
258                 result = testSubject.getDesc();
259         }
260
261         
262         @Test
263         public void testSetDesc() throws Exception {
264                 DistributionDeployEvent testSubject;
265                 String desc = "";
266
267                 // default test
268                 testSubject = createTestSubject();
269                 testSubject.setDesc(desc);
270         }
271
272         
273         @Test
274         public void testGetModifier() throws Exception {
275                 DistributionDeployEvent testSubject;
276                 String result;
277
278                 // default test
279                 testSubject = createTestSubject();
280                 result = testSubject.getModifier();
281         }
282
283         
284         @Test
285         public void testSetModifier() throws Exception {
286                 DistributionDeployEvent testSubject;
287                 String modifier = "";
288
289                 // default test
290                 testSubject = createTestSubject();
291                 testSubject.setModifier(modifier);
292         }
293
294         @Test
295         public void testGetDid() throws Exception {
296                 DistributionDeployEvent testSubject;
297                 String result;
298
299                 // default test
300                 testSubject = createTestSubject();
301                 result = testSubject.getDid();
302         }
303
304         
305         @Test
306         public void testSetDid() throws Exception {
307                 DistributionDeployEvent testSubject;
308                 String did = "";
309
310                 // default test
311                 testSubject = createTestSubject();
312                 testSubject.setDid(did);
313         }
314
315         
316         @Test
317         public void testToString() throws Exception {
318                 DistributionDeployEvent testSubject;
319                 String result;
320
321                 // default test
322                 testSubject = createTestSubject();
323                 result = testSubject.toString();
324         }
325 }