1 package org.openecomp.sdc.be.resources.data.auditing;
4 import org.openecomp.sdc.be.resources.data.auditing.model.CommonAuditData;
5 import org.openecomp.sdc.be.resources.data.auditing.model.OperationalEnvAuditData;
6 import org.openecomp.sdc.be.resources.data.auditing.model.ResourceCommonInfo;
7 import org.openecomp.sdc.be.resources.data.auditing.model.ResourceVersionInfo;
10 import java.util.UUID;
12 public class DistributionNotificationEventTest {
14 private DistributionNotificationEvent createTestSubject() {
15 return new DistributionNotificationEvent();
19 public void testCtor() throws Exception {
20 new DistributionNotificationEvent();
21 new DistributionNotificationEvent("mock", CommonAuditData.newBuilder().build(), new ResourceCommonInfo(),ResourceVersionInfo.newBuilder().build() , "mock", "mock", "mock", new OperationalEnvAuditData("mock", "mock", "mock"));
25 public void testFillFields() throws Exception {
26 DistributionNotificationEvent testSubject;
29 testSubject = createTestSubject();
30 testSubject.fillFields();
35 public void testGetResourceName() throws Exception {
36 DistributionNotificationEvent testSubject;
40 testSubject = createTestSubject();
41 result = testSubject.getResourceName();
46 public void testSetResourceName() throws Exception {
47 DistributionNotificationEvent testSubject;
48 String resourceName = "";
51 testSubject = createTestSubject();
52 testSubject.setResourceName(resourceName);
57 public void testGetResourceType() throws Exception {
58 DistributionNotificationEvent testSubject;
62 testSubject = createTestSubject();
63 result = testSubject.getResourceType();
68 public void testSetResourceType() throws Exception {
69 DistributionNotificationEvent testSubject;
70 String resourceType = "";
73 testSubject = createTestSubject();
74 testSubject.setResourceType(resourceType);
79 public void testGetCurrVersion() throws Exception {
80 DistributionNotificationEvent testSubject;
84 testSubject = createTestSubject();
85 result = testSubject.getCurrVersion();
90 public void testSetCurrVersion() throws Exception {
91 DistributionNotificationEvent testSubject;
92 String currVersion = "";
95 testSubject = createTestSubject();
96 testSubject.setCurrVersion(currVersion);
101 public void testGetCurrState() throws Exception {
102 DistributionNotificationEvent testSubject;
106 testSubject = createTestSubject();
107 result = testSubject.getCurrState();
112 public void testSetCurrState() throws Exception {
113 DistributionNotificationEvent testSubject;
114 String currState = "";
117 testSubject = createTestSubject();
118 testSubject.setCurrState(currState);
123 public void testGetTopicName() throws Exception {
124 DistributionNotificationEvent testSubject;
128 testSubject = createTestSubject();
129 result = testSubject.getTopicName();
134 public void testSetTopicName() throws Exception {
135 DistributionNotificationEvent testSubject;
136 String topicName = "";
139 testSubject = createTestSubject();
140 testSubject.setTopicName(topicName);
145 public void testGetTimebaseduuid() throws Exception {
146 DistributionNotificationEvent testSubject;
150 testSubject = createTestSubject();
151 result = testSubject.getTimebaseduuid();
156 public void testSetTimebaseduuid() throws Exception {
157 DistributionNotificationEvent testSubject;
158 UUID timebaseduuid = null;
161 testSubject = createTestSubject();
162 testSubject.setTimebaseduuid(timebaseduuid);
167 public void testGetTimestamp1() throws Exception {
168 DistributionNotificationEvent testSubject;
172 testSubject = createTestSubject();
173 result = testSubject.getTimestamp1();
178 public void testSetTimestamp1() throws Exception {
179 DistributionNotificationEvent testSubject;
180 Date timestamp1 = null;
183 testSubject = createTestSubject();
184 testSubject.setTimestamp1(timestamp1);
189 public void testGetRequestId() throws Exception {
190 DistributionNotificationEvent testSubject;
194 testSubject = createTestSubject();
195 result = testSubject.getRequestId();
200 public void testSetRequestId() throws Exception {
201 DistributionNotificationEvent testSubject;
202 String requestId = "";
205 testSubject = createTestSubject();
206 testSubject.setRequestId(requestId);
211 public void testGetServiceInstanceId() throws Exception {
212 DistributionNotificationEvent testSubject;
216 testSubject = createTestSubject();
217 result = testSubject.getServiceInstanceId();
222 public void testSetServiceInstanceId() throws Exception {
223 DistributionNotificationEvent testSubject;
224 String serviceInstanceId = "";
227 testSubject = createTestSubject();
228 testSubject.setServiceInstanceId(serviceInstanceId);
233 public void testGetAction() throws Exception {
234 DistributionNotificationEvent testSubject;
238 testSubject = createTestSubject();
239 result = testSubject.getAction();
244 public void testSetAction() throws Exception {
245 DistributionNotificationEvent testSubject;
249 testSubject = createTestSubject();
250 testSubject.setAction(action);
255 public void testGetStatus() throws Exception {
256 DistributionNotificationEvent testSubject;
260 testSubject = createTestSubject();
261 result = testSubject.getStatus();
266 public void testSetStatus() throws Exception {
267 DistributionNotificationEvent testSubject;
271 testSubject = createTestSubject();
272 testSubject.setStatus(status);
277 public void testGetDesc() throws Exception {
278 DistributionNotificationEvent testSubject;
282 testSubject = createTestSubject();
283 result = testSubject.getDesc();
288 public void testSetDesc() throws Exception {
289 DistributionNotificationEvent testSubject;
293 testSubject = createTestSubject();
294 testSubject.setDesc(desc);
299 public void testGetModifier() throws Exception {
300 DistributionNotificationEvent testSubject;
304 testSubject = createTestSubject();
305 result = testSubject.getModifier();
310 public void testSetModifier() throws Exception {
311 DistributionNotificationEvent testSubject;
312 String modifier = "";
315 testSubject = createTestSubject();
316 testSubject.setModifier(modifier);
321 public void testGetDid() throws Exception {
322 DistributionNotificationEvent testSubject;
326 testSubject = createTestSubject();
327 result = testSubject.getDid();
332 public void testSetDid() throws Exception {
333 DistributionNotificationEvent testSubject;
337 testSubject = createTestSubject();
338 testSubject.setDid(did);
343 public void testToString() throws Exception {
344 DistributionNotificationEvent testSubject;
348 testSubject = createTestSubject();
349 result = testSubject.toString();
353 public void testSetVnfWorkloadContext() throws Exception {
354 DistributionNotificationEvent testSubject;
357 testSubject = createTestSubject();
358 testSubject.setVnfWorkloadContext("mock");
362 public void testSetEnvId() throws Exception {
363 DistributionNotificationEvent testSubject;
366 testSubject = createTestSubject();
367 testSubject.setEnvId("mock");
371 public void testSetTenant() throws Exception {
372 DistributionNotificationEvent testSubject;
375 testSubject = createTestSubject();
376 testSubject.setTenant("mock");