1 package org.openecomp.sdc.be.resources.data.auditing;
4 import java.util.HashMap;
8 import org.openecomp.sdc.be.resources.data.auditing.model.CommonAuditData;
9 import org.openecomp.sdc.be.resources.data.auditing.model.OperationalEnvAuditData;
11 public class DistributionNotificationEventTest {
13 private DistributionNotificationEvent createTestSubject() {
14 return new DistributionNotificationEvent();
18 public void testCtor() throws Exception {
19 new DistributionNotificationEvent(new HashMap<>());
20 new DistributionNotificationEvent("mock", CommonAuditData.newBuilder().build(), "mock", "mock", "mock", "mock", "mock", "mock", "mock", new OperationalEnvAuditData("mock", "mock", "mock"));
24 public void testFillFields() throws Exception {
25 DistributionNotificationEvent testSubject;
28 testSubject = createTestSubject();
29 testSubject.fillFields();
34 public void testGetResourceName() throws Exception {
35 DistributionNotificationEvent testSubject;
39 testSubject = createTestSubject();
40 result = testSubject.getResourceName();
45 public void testSetResourceName() throws Exception {
46 DistributionNotificationEvent testSubject;
47 String resourceName = "";
50 testSubject = createTestSubject();
51 testSubject.setResourceName(resourceName);
56 public void testGetResourceType() throws Exception {
57 DistributionNotificationEvent testSubject;
61 testSubject = createTestSubject();
62 result = testSubject.getResourceType();
67 public void testSetResourceType() throws Exception {
68 DistributionNotificationEvent testSubject;
69 String resourceType = "";
72 testSubject = createTestSubject();
73 testSubject.setResourceType(resourceType);
78 public void testGetCurrVersion() throws Exception {
79 DistributionNotificationEvent testSubject;
83 testSubject = createTestSubject();
84 result = testSubject.getCurrVersion();
89 public void testSetCurrVersion() throws Exception {
90 DistributionNotificationEvent testSubject;
91 String currVersion = "";
94 testSubject = createTestSubject();
95 testSubject.setCurrVersion(currVersion);
100 public void testGetCurrState() throws Exception {
101 DistributionNotificationEvent testSubject;
105 testSubject = createTestSubject();
106 result = testSubject.getCurrState();
111 public void testSetCurrState() throws Exception {
112 DistributionNotificationEvent testSubject;
113 String currState = "";
116 testSubject = createTestSubject();
117 testSubject.setCurrState(currState);
122 public void testGetTopicName() throws Exception {
123 DistributionNotificationEvent testSubject;
127 testSubject = createTestSubject();
128 result = testSubject.getTopicName();
133 public void testSetTopicName() throws Exception {
134 DistributionNotificationEvent testSubject;
135 String topicName = "";
138 testSubject = createTestSubject();
139 testSubject.setTopicName(topicName);
144 public void testGetTimebaseduuid() throws Exception {
145 DistributionNotificationEvent testSubject;
149 testSubject = createTestSubject();
150 result = testSubject.getTimebaseduuid();
155 public void testSetTimebaseduuid() throws Exception {
156 DistributionNotificationEvent testSubject;
157 UUID timebaseduuid = null;
160 testSubject = createTestSubject();
161 testSubject.setTimebaseduuid(timebaseduuid);
166 public void testGetTimestamp1() throws Exception {
167 DistributionNotificationEvent testSubject;
171 testSubject = createTestSubject();
172 result = testSubject.getTimestamp1();
177 public void testSetTimestamp1() throws Exception {
178 DistributionNotificationEvent testSubject;
179 Date timestamp1 = null;
182 testSubject = createTestSubject();
183 testSubject.setTimestamp1(timestamp1);
188 public void testGetRequestId() throws Exception {
189 DistributionNotificationEvent testSubject;
193 testSubject = createTestSubject();
194 result = testSubject.getRequestId();
199 public void testSetRequestId() throws Exception {
200 DistributionNotificationEvent testSubject;
201 String requestId = "";
204 testSubject = createTestSubject();
205 testSubject.setRequestId(requestId);
210 public void testGetServiceInstanceId() throws Exception {
211 DistributionNotificationEvent testSubject;
215 testSubject = createTestSubject();
216 result = testSubject.getServiceInstanceId();
221 public void testSetServiceInstanceId() throws Exception {
222 DistributionNotificationEvent testSubject;
223 String serviceInstanceId = "";
226 testSubject = createTestSubject();
227 testSubject.setServiceInstanceId(serviceInstanceId);
232 public void testGetAction() throws Exception {
233 DistributionNotificationEvent testSubject;
237 testSubject = createTestSubject();
238 result = testSubject.getAction();
243 public void testSetAction() throws Exception {
244 DistributionNotificationEvent testSubject;
248 testSubject = createTestSubject();
249 testSubject.setAction(action);
254 public void testGetStatus() throws Exception {
255 DistributionNotificationEvent testSubject;
259 testSubject = createTestSubject();
260 result = testSubject.getStatus();
265 public void testSetStatus() throws Exception {
266 DistributionNotificationEvent testSubject;
270 testSubject = createTestSubject();
271 testSubject.setStatus(status);
276 public void testGetDesc() throws Exception {
277 DistributionNotificationEvent testSubject;
281 testSubject = createTestSubject();
282 result = testSubject.getDesc();
287 public void testSetDesc() throws Exception {
288 DistributionNotificationEvent testSubject;
292 testSubject = createTestSubject();
293 testSubject.setDesc(desc);
298 public void testGetModifier() throws Exception {
299 DistributionNotificationEvent testSubject;
303 testSubject = createTestSubject();
304 result = testSubject.getModifier();
309 public void testSetModifier() throws Exception {
310 DistributionNotificationEvent testSubject;
311 String modifier = "";
314 testSubject = createTestSubject();
315 testSubject.setModifier(modifier);
320 public void testGetDid() throws Exception {
321 DistributionNotificationEvent testSubject;
325 testSubject = createTestSubject();
326 result = testSubject.getDid();
331 public void testSetDid() throws Exception {
332 DistributionNotificationEvent testSubject;
336 testSubject = createTestSubject();
337 testSubject.setDid(did);
342 public void testToString() throws Exception {
343 DistributionNotificationEvent testSubject;
347 testSubject = createTestSubject();
348 result = testSubject.toString();
352 public void testSetVnfWorkloadContext() throws Exception {
353 DistributionNotificationEvent testSubject;
356 testSubject = createTestSubject();
357 testSubject.setVnfWorkloadContext("mock");
361 public void testSetEnvId() throws Exception {
362 DistributionNotificationEvent testSubject;
365 testSubject = createTestSubject();
366 testSubject.setEnvId("mock");
370 public void testSetTenant() throws Exception {
371 DistributionNotificationEvent testSubject;
374 testSubject = createTestSubject();
375 testSubject.setTenant("mock");