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