re base code
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / resources / data / auditing / DistributionDownloadEventTest.java
1
2 package org.openecomp.sdc.be.resources.data.auditing;
3
4 import org.junit.Test;
5 import org.openecomp.sdc.be.resources.data.auditing.model.CommonAuditData;
6 import org.openecomp.sdc.be.resources.data.auditing.model.DistributionData;
7
8 import java.util.Date;
9 import java.util.UUID;
10
11
12 public class DistributionDownloadEventTest {
13
14         private DistributionDownloadEvent createTestSubject() {
15                 return new DistributionDownloadEvent();
16         }
17
18         @Test
19         public void testCtor() throws Exception {
20                 new DistributionDownloadEvent();
21                 new DistributionDownloadEvent("mock", CommonAuditData.newBuilder().build(), new DistributionData("mock", "mock"));
22         }
23         
24         @Test
25         public void testFillFields() throws Exception {
26                 DistributionDownloadEvent testSubject;
27
28                 // default test
29                 testSubject = createTestSubject();
30                 testSubject.fillFields();
31         }
32
33         
34         @Test
35         public void testGetConsumerId() throws Exception {
36                 DistributionDownloadEvent testSubject;
37                 String result;
38
39                 // default test
40                 testSubject = createTestSubject();
41                 result = testSubject.getConsumerId();
42         }
43
44         
45         @Test
46         public void testSetConsumerId() throws Exception {
47                 DistributionDownloadEvent testSubject;
48                 String consumerId = "";
49
50                 // default test
51                 testSubject = createTestSubject();
52                 testSubject.setConsumerId(consumerId);
53         }
54
55         
56         @Test
57         public void testGetResourceUrl() throws Exception {
58                 DistributionDownloadEvent testSubject;
59                 String result;
60
61                 // default test
62                 testSubject = createTestSubject();
63                 result = testSubject.getResourceUrl();
64         }
65
66         
67         @Test
68         public void testSetResourceUrl() throws Exception {
69                 DistributionDownloadEvent testSubject;
70                 String resourceUrl = "";
71
72                 // default test
73                 testSubject = createTestSubject();
74                 testSubject.setResourceUrl(resourceUrl);
75         }
76
77         
78         @Test
79         public void testGetTimebaseduuid() throws Exception {
80                 DistributionDownloadEvent testSubject;
81                 UUID result;
82
83                 // default test
84                 testSubject = createTestSubject();
85                 result = testSubject.getTimebaseduuid();
86         }
87
88         
89         @Test
90         public void testSetTimebaseduuid() throws Exception {
91                 DistributionDownloadEvent testSubject;
92                 UUID timebaseduuid = null;
93
94                 // default test
95                 testSubject = createTestSubject();
96                 testSubject.setTimebaseduuid(timebaseduuid);
97         }
98
99         
100         @Test
101         public void testGetTimestamp1() throws Exception {
102                 DistributionDownloadEvent testSubject;
103                 Date result;
104
105                 // default test
106                 testSubject = createTestSubject();
107                 result = testSubject.getTimestamp1();
108         }
109
110         
111         @Test
112         public void testSetTimestamp1() throws Exception {
113                 DistributionDownloadEvent testSubject;
114                 Date timestamp1 = null;
115
116                 // default test
117                 testSubject = createTestSubject();
118                 testSubject.setTimestamp1(timestamp1);
119         }
120
121         
122         @Test
123         public void testGetRequestId() throws Exception {
124                 DistributionDownloadEvent testSubject;
125                 String result;
126
127                 // default test
128                 testSubject = createTestSubject();
129                 result = testSubject.getRequestId();
130         }
131
132         
133         @Test
134         public void testSetRequestId() throws Exception {
135                 DistributionDownloadEvent testSubject;
136                 String requestId = "";
137
138                 // default test
139                 testSubject = createTestSubject();
140                 testSubject.setRequestId(requestId);
141         }
142
143         
144         @Test
145         public void testGetServiceInstanceId() throws Exception {
146                 DistributionDownloadEvent testSubject;
147                 String result;
148
149                 // default test
150                 testSubject = createTestSubject();
151                 result = testSubject.getServiceInstanceId();
152         }
153
154         
155         @Test
156         public void testSetServiceInstanceId() throws Exception {
157                 DistributionDownloadEvent testSubject;
158                 String serviceInstanceId = "";
159
160                 // default test
161                 testSubject = createTestSubject();
162                 testSubject.setServiceInstanceId(serviceInstanceId);
163         }
164
165         
166         @Test
167         public void testGetAction() throws Exception {
168                 DistributionDownloadEvent testSubject;
169                 String result;
170
171                 // default test
172                 testSubject = createTestSubject();
173                 result = testSubject.getAction();
174         }
175
176         
177         @Test
178         public void testSetAction() throws Exception {
179                 DistributionDownloadEvent testSubject;
180                 String action = "";
181
182                 // default test
183                 testSubject = createTestSubject();
184                 testSubject.setAction(action);
185         }
186
187         
188         @Test
189         public void testGetStatus() throws Exception {
190                 DistributionDownloadEvent testSubject;
191                 String result;
192
193                 // default test
194                 testSubject = createTestSubject();
195                 result = testSubject.getStatus();
196         }
197
198         
199         @Test
200         public void testSetStatus() throws Exception {
201                 DistributionDownloadEvent testSubject;
202                 String status = "";
203
204                 // default test
205                 testSubject = createTestSubject();
206                 testSubject.setStatus(status);
207         }
208
209         
210         @Test
211         public void testGetDesc() throws Exception {
212                 DistributionDownloadEvent testSubject;
213                 String result;
214
215                 // default test
216                 testSubject = createTestSubject();
217                 result = testSubject.getDesc();
218         }
219
220         
221         @Test
222         public void testSetDesc() throws Exception {
223                 DistributionDownloadEvent testSubject;
224                 String desc = "";
225
226                 // default test
227                 testSubject = createTestSubject();
228                 testSubject.setDesc(desc);
229         }
230
231         
232         @Test
233         public void testToString() throws Exception {
234                 DistributionDownloadEvent testSubject;
235                 String result;
236
237                 // default test
238                 testSubject = createTestSubject();
239                 result = testSubject.toString();
240         }
241 }