Added oparent to sdc main
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / resources / data / auditing / DistributionDownloadEventTest.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 DistributionDownloadEventTest {
32
33         private DistributionDownloadEvent createTestSubject() {
34                 return new DistributionDownloadEvent();
35         }
36
37         @Test
38         public void testCtor() throws Exception {
39                 new DistributionDownloadEvent();
40                 new DistributionDownloadEvent("mock", CommonAuditData.newBuilder().build(), new DistributionData("mock", "mock"));
41         }
42         
43         @Test
44         public void testFillFields() throws Exception {
45                 DistributionDownloadEvent testSubject;
46
47                 // default test
48                 testSubject = createTestSubject();
49                 testSubject.fillFields();
50         }
51
52         
53         @Test
54         public void testGetConsumerId() throws Exception {
55                 DistributionDownloadEvent testSubject;
56                 String result;
57
58                 // default test
59                 testSubject = createTestSubject();
60                 result = testSubject.getConsumerId();
61         }
62
63         
64         @Test
65         public void testSetConsumerId() throws Exception {
66                 DistributionDownloadEvent testSubject;
67                 String consumerId = "";
68
69                 // default test
70                 testSubject = createTestSubject();
71                 testSubject.setConsumerId(consumerId);
72         }
73
74         
75         @Test
76         public void testGetResourceUrl() throws Exception {
77                 DistributionDownloadEvent testSubject;
78                 String result;
79
80                 // default test
81                 testSubject = createTestSubject();
82                 result = testSubject.getResourceUrl();
83         }
84
85         
86         @Test
87         public void testSetResourceUrl() throws Exception {
88                 DistributionDownloadEvent testSubject;
89                 String resourceUrl = "";
90
91                 // default test
92                 testSubject = createTestSubject();
93                 testSubject.setResourceUrl(resourceUrl);
94         }
95
96         
97         @Test
98         public void testGetTimebaseduuid() throws Exception {
99                 DistributionDownloadEvent testSubject;
100                 UUID result;
101
102                 // default test
103                 testSubject = createTestSubject();
104                 result = testSubject.getTimebaseduuid();
105         }
106
107         
108         @Test
109         public void testSetTimebaseduuid() throws Exception {
110                 DistributionDownloadEvent testSubject;
111                 UUID timebaseduuid = null;
112
113                 // default test
114                 testSubject = createTestSubject();
115                 testSubject.setTimebaseduuid(timebaseduuid);
116         }
117
118         
119         @Test
120         public void testGetTimestamp1() throws Exception {
121                 DistributionDownloadEvent testSubject;
122                 Date result;
123
124                 // default test
125                 testSubject = createTestSubject();
126                 result = testSubject.getTimestamp1();
127         }
128
129         
130         @Test
131         public void testSetTimestamp1() throws Exception {
132                 DistributionDownloadEvent testSubject;
133                 Date timestamp1 = null;
134
135                 // default test
136                 testSubject = createTestSubject();
137                 testSubject.setTimestamp1(timestamp1);
138         }
139
140         
141         @Test
142         public void testGetRequestId() throws Exception {
143                 DistributionDownloadEvent 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                 DistributionDownloadEvent 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                 DistributionDownloadEvent 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                 DistributionDownloadEvent 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                 DistributionDownloadEvent 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                 DistributionDownloadEvent 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                 DistributionDownloadEvent 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                 DistributionDownloadEvent 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                 DistributionDownloadEvent 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                 DistributionDownloadEvent testSubject;
243                 String desc = "";
244
245                 // default test
246                 testSubject = createTestSubject();
247                 testSubject.setDesc(desc);
248         }
249
250         
251         @Test
252         public void testToString() throws Exception {
253                 DistributionDownloadEvent testSubject;
254                 String result;
255
256                 // default test
257                 testSubject = createTestSubject();
258                 result = testSubject.toString();
259         }
260 }